Skip to content

Commit

Permalink
command_download: expose d.connection_[leech/seed](.set) to RPC inter…
Browse files Browse the repository at this point in the history
…face

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.
  • Loading branch information
jesec committed Dec 26, 2020
1 parent 562da85 commit 657089d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/command_download.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1044,8 +1044,8 @@ initialize_command_download() {
std::placeholders::_1,
std::placeholders::_2));

CMD2_DL_VAR_STRING("d.connection_leech", "rtorrent", "connection_leech");
CMD2_DL_VAR_STRING("d.connection_seed", "rtorrent", "connection_seed");
CMD2_DL_VAR_STRING_PUBLIC("d.connection_leech", "rtorrent", "connection_leech");
CMD2_DL_VAR_STRING_PUBLIC("d.connection_seed", "rtorrent", "connection_seed");

CMD2_DL("d.up.choke_heuristics",
std::bind(&torrent::option_as_string,
Expand Down

0 comments on commit 657089d

Please sign in to comment.