Skip to content

Commit 657089d

Browse files
committed
command_download: expose d.connection_[leech/seed](.set) to RPC interface
Apparently exposed "d.connection_current(.set)" command can't toggle initial seeding mode. Ctrl-B uses "d.connection_seed.set=initial_seed", and that's the command that truly works. As such, expose d.connection_[leech/seed](.set) so RPC users can use them.
1 parent 562da85 commit 657089d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/command_download.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,8 +1044,8 @@ initialize_command_download() {
10441044
std::placeholders::_1,
10451045
std::placeholders::_2));
10461046

1047-
CMD2_DL_VAR_STRING("d.connection_leech", "rtorrent", "connection_leech");
1048-
CMD2_DL_VAR_STRING("d.connection_seed", "rtorrent", "connection_seed");
1047+
CMD2_DL_VAR_STRING_PUBLIC("d.connection_leech", "rtorrent", "connection_leech");
1048+
CMD2_DL_VAR_STRING_PUBLIC("d.connection_seed", "rtorrent", "connection_seed");
10491049

10501050
CMD2_DL("d.up.choke_heuristics",
10511051
std::bind(&torrent::option_as_string,

0 commit comments

Comments
 (0)