fix typo with bind_outgoing_socket~

This commit is contained in:
Arvid Norberg 2018-04-25 23:09:25 -04:00 committed by Arvid Norberg
parent 6394e7ac02
commit 366b7983d1
1 changed files with 3 additions and 1 deletions

View File

@ -381,12 +381,14 @@ namespace libtorrent
return;
}
#ifndef TORRENT_DISABLE_LOGGING
tcp::endpoint const bound_ip = m_ses.bind_outgoing_socket(*m_socket
, m_remote.address(), ec);
#ifndef TORRENT_DISABLE_LOGGING
peer_log(peer_log_alert::outgoing, "BIND", "dst: %s ec: %s"
, print_endpoint(bound_ip).c_str()
, ec.message().c_str());
#else
TORRENT_UNUSED(bound_ip);
#endif
if (ec)
{