ignore failures when asking for local address of sockets and parsing a string into an IP address

This commit is contained in:
Arvid Norberg
2012-02-20 04:13:39 +00:00
parent 065d75b02d
commit 079a8f8314
2 changed files with 4 additions and 3 deletions

View File

@@ -2085,7 +2085,7 @@ namespace aux {
// if we asked the system to listen on port 0, which
// socket did it end up choosing?
if (ep.port() == 0)
ep.port(s->sock->local_endpoint().port());
ep.port(s->sock->local_endpoint(ec).port());
if (m_alerts.should_post<listen_succeeded_alert>())
m_alerts.post_alert(listen_succeeded_alert(ep));