a better fix to the ssl port announce bug

This commit is contained in:
arvidn 2018-11-12 18:06:31 +01:00 committed by Arvid Norberg
parent 049b090e8d
commit 13dd7cfe1e
2 changed files with 1 additions and 4 deletions

View File

@ -1319,7 +1319,7 @@ namespace aux {
#ifdef TORRENT_USE_OPENSSL
// SSL torrents use the SSL listen port
if (req.ssl_ctx) req.listen_port = ssl_listen_port();
if (req.ssl_ctx && req.ssl_ctx != &m_ssl_ctx) req.listen_port = ssl_listen_port();
else req.ssl_ctx = &m_ssl_ctx;
#endif
#if TORRENT_USE_I2P

View File

@ -3722,9 +3722,6 @@ namespace {
req.private_torrent = m_torrent_file->priv();
req.second_announce = true;
#ifdef TORRENT_USE_OPENSSL
req.ssl_ctx = NULL;
#endif
// tell the tracker to bind to the opposite protocol type
req.bind_ip = tracker_ip.is_v4()