Log an error if STUN fails

This commit is contained in:
Cameron Gutman
2018-10-26 20:51:31 -07:00
parent 8e6dadfa79
commit 39a2e8be78

View File

@@ -78,6 +78,9 @@ static NSString* NV_SERVICE_TYPE = @"_nvstream._tcp";
inet_ntop(AF_INET, &wanAddr, addrStr, sizeof(addrStr));
host.externalAddress = [NSString stringWithFormat: @"%s", addrStr];
}
else {
Log(LOG_E, @"STUN failed to get WAN address: %d", err);
}
host.activeAddress = host.localAddress = service.hostName;
host.name = service.hostName;