- only show debug when verbose enabled
This commit is contained in:
parent
f2ccc5b0ca
commit
1803c2ea94
|
@ -2239,17 +2239,17 @@ void UPNP_Tools::upnp_rem_redirect(int ext_port) {
|
|||
char ext_port_str[16]="";
|
||||
sprintf(ext_port_str, "%d", ext_port);
|
||||
|
||||
printf("\n\n#1 DEBUGGUNG urls.controlURL [%s]\n",urls.controlURL);
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("\n\n#1 DEBUGGUNG urls.controlURL [%s]\n",urls.controlURL);
|
||||
|
||||
#ifndef MEGAGLEST_EMBEDDED_MINIUPNPC
|
||||
printf("\n\n#1 DEBUGGUNG data.first.servicetype [%s]\n",data.first.servicetype);
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("\n\n#1 DEBUGGUNG data.first.servicetype [%s]\n",data.first.servicetype);
|
||||
UPNP_DeletePortMapping(urls.controlURL, data.first.servicetype, ext_port_str, "TCP", 0);
|
||||
#else
|
||||
printf("\n\n#1 DEBUGGUNG data.servicetype [%s]\n",data.servicetype);
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("\n\n#1 DEBUGGUNG data.servicetype [%s]\n",data.servicetype);
|
||||
UPNP_DeletePortMapping(urls.controlURL, data.servicetype, ext_port_str, "TCP", 0);
|
||||
#endif
|
||||
}
|
||||
printf("\n\n#2 DEBUGGUNG urls.controlURL [%s]\n",urls.controlURL);
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("\n\n#2 DEBUGGUNG urls.controlURL [%s]\n",urls.controlURL);
|
||||
}
|
||||
|
||||
void UPNP_Tools::NETaddRedirects(std::vector<int> UPNPPortForwardList) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user