ignore failures in when asking for local_endpoint
This commit is contained in:
@@ -79,7 +79,8 @@ namespace libtorrent
|
|||||||
bool is_closed() const { return m_abort; }
|
bool is_closed() const { return m_abort; }
|
||||||
tcp::endpoint local_endpoint() const
|
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());
|
return tcp::endpoint(ep.address(), ep.port());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user