diff --git a/src/udp_tracker_connection.cpp b/src/udp_tracker_connection.cpp index 5a825b31e..0e18984ab 100644 --- a/src/udp_tracker_connection.cpp +++ b/src/udp_tracker_connection.cpp @@ -658,7 +658,8 @@ namespace libtorrent // ip address address_v4 announce_ip; - if (!settings.announce_ip.empty()) + if (!m_ses.settings().anonymous_mode + && !settings.announce_ip.empty()) { error_code ec; address ip = address::from_string(settings.announce_ip.c_str(), ec);