mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-20 23:40:17 +00:00
Log an error if STUN fails
This commit is contained in:
@@ -78,6 +78,9 @@ static NSString* NV_SERVICE_TYPE = @"_nvstream._tcp";
|
|||||||
inet_ntop(AF_INET, &wanAddr, addrStr, sizeof(addrStr));
|
inet_ntop(AF_INET, &wanAddr, addrStr, sizeof(addrStr));
|
||||||
host.externalAddress = [NSString stringWithFormat: @"%s", 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.activeAddress = host.localAddress = service.hostName;
|
||||||
host.name = service.hostName;
|
host.name = service.hostName;
|
||||||
|
|||||||
Reference in New Issue
Block a user