mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2025-07-01 23:35:27 +00:00
Retry STUN over TCP on UDP failure
This commit is contained in:
parent
a835cf43a5
commit
156940cc5b
@ -533,8 +533,8 @@ bool CheckWANAccess(PSOCKADDR_IN wanAddr, PSOCKADDR_IN reportedWanAddr, bool* fo
|
||||
}
|
||||
|
||||
printf("Detecting WAN IP address via STUN...");
|
||||
if (!getExternalAddressPortIP4(IPPROTO_UDP, 0, wanAddr)) {
|
||||
DisplayMessage("Unable to determine your public IP address. Please check your Internet connection.");
|
||||
if (!getExternalAddressPortIP4(IPPROTO_UDP, 0, wanAddr) && !getExternalAddressPortIP4(IPPROTO_TCP, 0, wanAddr)) {
|
||||
DisplayMessage("Unable to determine your public IP address. Please check your Internet connection or try again in a few minutes.");
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user