ignore failures in when asking for local_endpoint
This commit is contained in:
parent
eed5ec97a6
commit
a3f5962f91
|
@ -79,7 +79,8 @@ namespace libtorrent
|
|||
bool is_closed() const { return m_abort; }
|
||||
tcp::endpoint local_endpoint() const
|
||||
{
|
||||
udp::endpoint ep = m_ipv4_sock.local_endpoint();
|
||||
error_code ec;
|
||||
udp::endpoint ep = m_ipv4_sock.local_endpoint(ec);
|
||||
return tcp::endpoint(ep.address(), ep.port());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue