From f772675d95d5b014066f96ae8eb523bfbd9fd380 Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Mon, 29 Jun 2015 23:37:37 -0400 Subject: [PATCH] Removed uTP implied port logic from dht_announce. --- src/session_impl.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index d03fc2ce0..d220913ea 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -5565,16 +5565,6 @@ retry: void session_impl::dht_announce(sha1_hash const& info_hash, int port, int flags) { if (!m_dht) return; - - port = port <= 0 ? listen_port() : port; - - // if incoming uTP connections are allowed, set the implied_port - // argument in the announce, this will make the DHT node use - // our source port in the packet as our listen port, which is - // likely more accurate when behind a NAT - if (settings().get_bool(settings_pack::enable_incoming_utp)) - flags |= dht::dht_tracker::flag_implied_port; - m_dht->announce(info_hash, port, flags, boost::bind(&on_dht_get_peers, boost::ref(m_alerts), info_hash, _1)); }