rakshasa / libtorrent

libTorrent BitTorrent library
http://rtorrent.net/downloads/
GNU General Public License v2.0
886 stars 209 forks source link

network.port_range.set doesn't seem to actually have an effect on the connect port (after initialise) #103

Closed rolfyone closed 8 years ago

rolfyone commented 8 years ago

The ctrl+x command takes network.port_range.set as a command, and seems happy enough, however after that, the connect port does not update.

Background: I'm now using a vpn provider, and i have to query a connect port. once i get that port, i would like to update it without restarting rtorrent.

So far i've tried -updating the code to accept a SIGHUP as a sign to perform a config reload, but that didn't work because of some settings not liking being changed, -cutting down a config file to just have network.port_range=12345-12345 -using CTRL+X and typing network.port_range=12345-1234, or port_range=12345-12345, or network.port_range.set=12345-12345

If there's a way to do this without restarting that's great, I just have been googling and hacking for a couple of days intermittently and it's been difficult. I can't imagine i'm the only person wanting to be able to change their port while rtorrent is up, any ideas?

rolfyone commented 8 years ago

ok so somehow i've managed to open this in libtorrent instead of rtorrent. apologies for the confusion. I found another thread basically wanting this and saying its currnetly not possible, but it had some xmlrpc commands at least which is a starting point to dig! thanks anyway!