dht: don't set implied_port for SSL torrents

This commit is contained in:
Steven Siloti 2018-07-08 15:12:26 -07:00 committed by Arvid Norberg
parent 961cf62cad
commit 28b6f64c4b
1 changed files with 4 additions and 1 deletions

View File

@ -2597,7 +2597,10 @@ bool is_downloading_state(int const st)
// 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))
// don't set this for SSL torrents because peers need
// to connect to the SSL listen port
if (settings().get_bool(settings_pack::enable_incoming_utp)
&& !is_ssl_torrent())
flags |= dht::dht_tracker::flag_implied_port;
if (is_ssl_torrent())