From c9648302137579a8bb81c4c7e6bff6b4b6a893f5 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 6 Nov 2018 20:39:59 -0800 Subject: [PATCH] Move IPv6 FW check to the correct location --- miss/miss.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/miss/miss.cpp b/miss/miss.cpp index e502d64..7e28800 100644 --- a/miss/miss.cpp +++ b/miss/miss.cpp @@ -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) {