Avoid using IPv6 FC if no control URL was present

This commit is contained in:
Cameron Gutman 2018-11-05 19:43:50 -08:00
parent 81ca65d7d4
commit 2899843900

View File

@ -304,6 +304,11 @@ 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.