Print UPnP root desc URL in logs

This commit is contained in:
Cameron Gutman 2021-02-01 19:41:14 -06:00
parent 03c89e4022
commit 9772139229

View File

@ -319,10 +319,10 @@ bool UPnPHandleDeviceList(struct UPNPDev* list, bool enable, char* lanAddrOverri
return false; return false;
} }
else if (ret == 1) { else if (ret == 1) {
printf("Found a connected UPnP IGD" NL); printf("Found a connected UPnP IGD (%s)" NL, urls.rootdescURL);
} }
else if (ret == 2) { else if (ret == 2) {
printf("Found a disconnected UPnP IGD (!)" NL); printf("Found a disconnected (!) UPnP IGD (%s)" NL, urls.rootdescURL);
// Even if we are able to add forwarding entries, go ahead and try NAT-PMP // Even if we are able to add forwarding entries, go ahead and try NAT-PMP
success = false; success = false;