forked from premiere/premiere-libtorrent
a better fix to the ssl port announce bug
This commit is contained in:
parent
049b090e8d
commit
13dd7cfe1e
|
@ -1319,7 +1319,7 @@ namespace aux {
|
||||||
|
|
||||||
#ifdef TORRENT_USE_OPENSSL
|
#ifdef TORRENT_USE_OPENSSL
|
||||||
// SSL torrents use the SSL listen port
|
// 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;
|
else req.ssl_ctx = &m_ssl_ctx;
|
||||||
#endif
|
#endif
|
||||||
#if TORRENT_USE_I2P
|
#if TORRENT_USE_I2P
|
||||||
|
|
|
@ -3722,9 +3722,6 @@ namespace {
|
||||||
|
|
||||||
req.private_torrent = m_torrent_file->priv();
|
req.private_torrent = m_torrent_file->priv();
|
||||||
req.second_announce = true;
|
req.second_announce = true;
|
||||||
#ifdef TORRENT_USE_OPENSSL
|
|
||||||
req.ssl_ctx = NULL;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// tell the tracker to bind to the opposite protocol type
|
// tell the tracker to bind to the opposite protocol type
|
||||||
req.bind_ip = tracker_ip.is_v4()
|
req.bind_ip = tracker_ip.is_v4()
|
||||||
|
|
Loading…
Reference in New Issue