xirvik
13e073d9ff
Reject division overflow in math.div and math.mod.
...
Dividing the smallest integer by -1 traps and takes the process with it.
2026-08-18 11:12:33 +02:00
Jari Sundell
662d67e861
Cleaned up if/branch commands and made branch types stricter.
2026-06-15 18:55:30 +09:00
Jari Sundell
75377817b4
Deprecate commands and set DHT to auto by default.
2026-06-05 21:50:08 +09:00
Jari Sundell
5a4ba8bc32
Removed deprecated rak header files.
2026-04-10 22:04:02 +09:00
Xirvik
d935e0ffe9
Address review feedback: explicit mark_safe whitelist and rpc trust flow
2026-03-23 15:11:07 +01:00
Xirvik
f767053297
Mark safe commands with flag_untrusted_safe for whitelist enforcement
...
Annotate all commands that web UIs (ruTorrent) need for normal torrent
management with _U macro variants, which set flag_untrusted_safe.
Commands not marked are blocked by default for untrusted connections.
Safe commands include:
- d.* download getters, state, priorities, custom fields, start/stop
- f.* file getters, priority control
- p.* peer getters, disconnect, ban/snub
- t.* tracker getters, enable/disable
- throttle.* rate getters/setters, peer limits
- network.* read-only queries (getters safe, setters blocked)
- view.list, view.size, view.filter_all, ui.current_view
- load.*, download_list, d.multicall2, d.multicall.filtered
- convert.*, branch/if/and/or/not/cat/value/print
- system.* version/time/status queries (read-only)
- choke_group.* read-only queries
- method.has_key, method.const, method.list_keys, method.get, strings.*
- group.*.view, group.*.ratio.min/max/upload (dynamic, via flag propagation)
Blocked by default (not marked):
- execute*, method.insert/set/redirect, schedule*, import
- log.*, file.append, network.scgi.open_*, view.filter/sort/event_*
- system.shutdown, system.env, group.insert, choke_group.insert
- All user-defined commands (via method.insert)
2026-03-23 15:11:07 +01:00
rakshasa
756e3bd5ae
Invert color of focus ui element.
2025-08-05 08:56:22 +02:00
Rosen Penev
2b15c4a1fa
command_ui: use templates instead of function
...
Less overhead.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2025-06-21 11:48:21 +02:00
Rosen Penev
0948b5f86a
clang-tidy: convert loops to range based
...
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2025-06-19 09:57:21 +02:00
Fredrik Lindell
a51f367671
Add emacs and vi keymap config logic
...
* Add emacs and vi keymap config logic
2025-06-05 16:29:12 +02:00
Jari Sundell
85e74b5542
Removed priority_queue and rak/timer.
2025-05-02 18:03:51 +09:00
Jari Sundell
97415c656b
Various scheduler and therad cleanups.
2025-05-01 16:38:49 +09:00
rakshasa
8d991b4ce5
Added 'system.files.session.fdatasync' config option.
2025-03-28 15:32:57 +01:00
stickz
712e7e5db0
cleanup: Remove rak/functional.h
...
This commit replaces the `rak/functional.h` features with lambdas and std functions.
There was one instance with `std::sort` where the comparison operator was always evaluating to false and it wasn't sorting anything. This is removed in favour of the default comparison operator.
`std::sort(transferChunks.begin(), transferChunks.end());`
2025-01-12 14:30:01 -05:00
kannibalox
7534b02815
Add page up/down and home/end bindings to download list
2025-01-09 15:28:16 +00:00
kannibalox
090b3889ce
Add color support for the TUI
...
Closes #398
2024-12-26 16:32:42 -05:00
kannibalox
cd9948a4a8
Remove/replace functional_fun.h functions
2024-12-22 19:17:36 +09:00
chros
f22475d1bf
Modify throttle status bar mod to be able to display multiple values (See #6 )
2019-07-27 11:22:56 +01:00
rakshasa
859d5a9578
Merge branch 'master' of https://github.com/toff/rtorrent into toff-master
2019-07-08 21:39:31 +02:00
rakshasa
a3a384b049
Fixed minor issues.
2019-06-09 17:09:35 +09:00
rakshasa
fa61b8c11c
Merge branch 'cmd-compare' of https://github.com/pyroscope/rtorrent into pyroscope-cmd-compare
2018-10-20 21:38:28 +09:00
toff
30c78c7034
Merge branch 'master' into master
2018-09-29 11:31:06 +02:00
rakshasa
f0207ce654
Added "try" command that catches input_errors and logs them on rpc_events.
2018-06-23 17:01:34 +09:00
Jari Sundell
08aa287cfc
Merge pull request #614 from chros73/adjustable_global_throttle_steps
...
Make global throttle steps adjustable
2018-06-19 00:08:32 +09:00
pyroscope
2ac65ad7e1
add 'value' command / conversion op
2018-06-16 06:54:39 +02:00
pyroscope
a4939cb9fd
add 'compare' command / operator
2018-06-15 22:36:55 +02:00
chros
6dc87e499a
Fix bugs in 'math.*' commands (See #14 )
2018-06-01 11:51:42 +01:00
chros
6c11a1dbb0
Fix error message in as_vector method (See #14 )
2018-03-03 09:08:28 +00:00
chros
29d57e858a
Make global throttle steps adjustable ( Closes #17 )
2017-06-06 09:54:01 +01:00
Toff
7ec9b6685b
Merge pyroscope and chros73 suggestion: Command name uniformisation.
...
ui.console.log.tempfilter => view.temp_filter.log
2017-05-06 11:17:25 +02:00
Toff
d5de8a91d1
Merge chros73 suggestions (settings to exclude views and hide info logs)
...
- Certain views can be excluded from subfiltering via view.temp_filter.excluded config option
- its default value: "default,started,stopped"
- example usage in config: view.temp_filter.excluded.set="default,started,stopped,leeching"
- Log messages can be displayed when temp filtering occured
- disabled by default
- can be enabled with: ui.console.log.tempfilter.set=1
2017-04-17 14:56:11 +02:00
chros
13676f06e5
Add median command (See #14 )
2017-03-11 11:40:08 +00:00
chros
6cb176ada3
Add more info to throw message in math commands (See #14 )
2017-03-07 13:12:18 +00:00
chros
8b6a1ad079
Add count and average commands (See #14 )
2017-03-07 12:57:31 +00:00
chros
3002c95b2c
Rename couple of arithmetic commands (See #14 )
2017-03-06 19:41:49 +00:00
chros
9590949fa7
Add support for basic arithmetic operators (See #14 )
2017-03-06 13:06:59 +00:00
Toff
6ee61ee6b5
Merge chros73 suggestions (filter indicator, "start/stopped" view case)
...
- Suffix filtered view name with "(filtered)"
- Add a check to not filter "start" and "stopped" view
2017-01-08 19:45:46 +01:00
Toff
e15270271d
Add a temporary name filter for the main view.
...
By using 'F' in the main view you can enter a regex
that will be used to filter the view based on the torrent name.
To remove the filter set the input to empty.
This is adding a 'view.temp_filter' property and a 'match{}' function.
For example with Ctrl+X you could do:
command> view.temp_filter=main,"match={d.name=,.*linux.*iso}"
2016-10-31 12:19:41 +01:00
rakshasa
2c60226bd2
Cleaned up compact display.
2016-08-03 23:57:02 +09:00
rakshasa
d111594d20
Added merzlya's torrent status display changes.
2016-08-03 23:01:28 +09:00
pyroscope
30d8379391
added ui.current_view command
2016-03-08 13:25:04 +01:00
rakshasa
3b39f37f49
C++11 compatibility fixes.
2014-05-13 23:36:37 +09:00
rakshasa
529eda5aab
Converted sigc++ slots to std::tr1::function.
2013-08-24 00:14:25 +09:00
rakshasa
fb75510c0f
Allow functions and lists of functions to be passed to view.event_{added,removed}.
2012-05-04 21:31:12 +09:00
rakshasa
bb75f06c6d
Replaced std::placeholders with tr1::placholders.
2012-03-21 01:24:35 +09:00
rakshasa
04acc8a0af
Converted std::bind calls to tr1::bind.
2012-03-21 01:22:25 +09:00
rakshasa
4d313e6353
Updated copyright information.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1301 e378c898-3ddf-0310-93e7-cc216c733640
2011-10-09 06:30:14 +00:00
rakshasa
1e206cb1c4
* Cleanup of command handling.
...
* Added 'd.timestamp.finished' that is set when a downloading torrent completes. For torrents that only seed it remains '0'.
* Added 'elapsed.{less,greater}' for checking the time elapsed since a time is less/greater, and it also returns false in all cases where the time is '0'.
* Fixed a bug that would cause hash checking to block exessively in some cases.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1233 e378c898-3ddf-0310-93e7-cc216c733640
2011-06-05 07:11:59 +00:00
rakshasa
56a7546f46
* This should fix the leeching and seeding filter.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1226 e378c898-3ddf-0310-93e7-cc216c733640
2011-05-07 14:13:37 +00:00
rakshasa
2f485cdf42
* Fixed 'and' and 'or' commands.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1225 e378c898-3ddf-0310-93e7-cc216c733640
2011-05-07 04:57:47 +00:00