Move IPv6 FW check to the correct location

This commit is contained in:
Cameron Gutman
2018-11-06 20:39:59 -08:00
parent 1b8f15e259
commit c964830213

View File

@@ -304,17 +304,17 @@ bool UPnPHandleDeviceList(struct UPNPDev* list, bool ipv6, bool enable)
return false;
}
if (data.IPv6FC.controlurl[0] == 0) {
printf("IPv6 firewall control not supported by UPnP IGD!" NL);
return false;
}
if (ipv6) {
// Convert what is likely a IPv6 temporary address into
// the stable IPv6 address for the same interface.
if (ResolveStableIP6Address(myAddr)) {
printf("Stable global IPv6 address is: %s" NL, myAddr);
if (data.IPv6FC.controlurl[0] == 0) {
printf("IPv6 firewall control not supported by UPnP IGD!" NL);
return false;
}
int firewallEnabled;
ret = UPNP_GetFirewallStatus(urls.controlURL_6FC, data.IPv6FC.servicetype, &firewallEnabled, &pinholeAllowed);
if (ret == UPNPCOMMAND_SUCCESS) {