This commit is contained in:
Steven Siloti 2017-07-20 21:21:17 -07:00
parent f0ae2145ea
commit 1a64490ef0
2 changed files with 3 additions and 1 deletions

View File

@ -64,6 +64,8 @@ namespace libtorrent { namespace aux {
: m_sock(s)
{}
listen_socket_handle(listen_socket_handle const& o) = default;
explicit operator bool() const { return !m_sock.expired(); }
address get_external_address() const;

View File

@ -1227,7 +1227,7 @@ namespace {
req.listen_port = listen_port(ls.get());
#ifdef TORRENT_USE_OPENSSL
// SSL torrents use the SSL listen port
if (use_ssl) req.listen_port = ssl_listen_port(&ls);
if (use_ssl) req.listen_port = ssl_listen_port(ls.get());
#endif
req.outgoing_socket = listen_socket_handle(ls);
m_tracker_manager.queue_request(get_io_service(), req, c);