mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-10 12:12:31 +00:00
Improved listen/dht port handling and added 'dht.override_port.set' command.
This commit is contained in:
+1
-1
@@ -196,7 +196,7 @@ Manager::set_bind_address(const std::string& addr) {
|
||||
|
||||
try {
|
||||
|
||||
if (torrent::connection_manager()->listen_port() != 0) {
|
||||
if (torrent::connection_manager()->is_listen_open()) {
|
||||
torrent::connection_manager()->listen_close();
|
||||
torrent::config::network_config()->set_bind_address(ai->address()->c_sockaddr());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user