mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2026-04-08 16:56:29 +00:00
Try all resolved STUN servers
This commit is contained in:
@@ -732,7 +732,7 @@ bool CheckWANAccess(PSOCKADDR_IN wanAddr, PSOCKADDR_IN reportedWanAddr, bool* fo
|
||||
fprintf(LOG_OUT, "Detecting WAN IP address via STUN...");
|
||||
fprintf(CONSOLE_OUT, "\tTesting STUN...\n");
|
||||
|
||||
if (!getExternalAddressPortIP4(IPPROTO_UDP, 0, wanAddr) && !getExternalAddressPortIP4(IPPROTO_TCP, 0, wanAddr)) {
|
||||
if (!getExternalAddressPortIP4(0, wanAddr)) {
|
||||
DisplayMessage("Unable to determine your public IP address. Please check your Internet connection or try again in a few minutes.");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user