|
|
@ -768,6 +768,7 @@ void PeerServer::populateAddresses() |
|
|
|
char host[NI_MAXHOST]; |
|
|
|
if (getnameinfo(ifa->ifa_addr, sizeof(struct sockaddr_in), host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST)) |
|
|
|
continue; |
|
|
|
// TODO: Make exception safe when no internet.
|
|
|
|
auto it = r.resolve({host, "30303"}); |
|
|
|
bi::tcp::endpoint ep = it->endpoint(); |
|
|
|
bi::address ad = ep.address(); |
|
|
|