Print computer name when looking for mappings

This commit is contained in:
Cameron Gutman 2018-11-20 17:12:30 -08:00
parent c6837c95f1
commit 3145d34381

View File

@ -88,7 +88,7 @@ bool UPnPMapPort(struct UPNPUrls* urls, struct IGDdatas* data, int proto, const
return false; return false;
} }
printf("Checking for existing UPnP port mapping for %s %s -> %s...", protoStr, portStr, myAddr); printf("Checking for existing UPnP port mapping for %s %s -> %s %s...", protoStr, portStr, myAddr, computerName);
int err = UPNP_GetSpecificPortMappingEntry( int err = UPNP_GetSpecificPortMappingEntry(
urls->controlURL, data->first.servicetype, portStr, protoStr, nullptr, urls->controlURL, data->first.servicetype, portStr, protoStr, nullptr,
intClient, intPort, desc, enabled, leaseDuration); intClient, intPort, desc, enabled, leaseDuration);