mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2025-07-02 15:55:40 +00:00
Ensure that NAT-PMP is used if no UPnP IGD is found
This commit is contained in:
parent
c35241f7d6
commit
522fa0426c
@ -271,7 +271,8 @@ bool UPnPHandleDeviceList(struct UPNPDev* list, bool ipv6, bool enable)
|
|||||||
}
|
}
|
||||||
else if (ret == 3) {
|
else if (ret == 3) {
|
||||||
printf("No UPnP IGD found!" NL);
|
printf("No UPnP IGD found!" NL);
|
||||||
goto Exit;
|
FreeUPNPUrls(&urls);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
else if (ret == 1) {
|
else if (ret == 1) {
|
||||||
printf("Found a connected UPnP IGD" NL);
|
printf("Found a connected UPnP IGD" NL);
|
||||||
@ -284,7 +285,7 @@ bool UPnPHandleDeviceList(struct UPNPDev* list, bool ipv6, bool enable)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
printf("UPNP_GetValidIGD() failed: %d" NL, ret);
|
printf("UPNP_GetValidIGD() failed: %d" NL, ret);
|
||||||
goto Exit;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ipv6) {
|
if (ipv6) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user