Improved listen/dht port handling and added 'dht.override_port.set' command.

This commit is contained in:
Jari Sundell
2025-09-13 10:51:04 +02:00
committed by GitHub
parent ba1ba3096a
commit 677f8f45c8
8 changed files with 18 additions and 37 deletions
+1 -1
View File
@@ -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());