- only show debug when verbose enabled

This commit is contained in:
Mark Vejvoda 2011-06-01 19:07:28 +00:00
parent f2ccc5b0ca
commit 1803c2ea94

View File

@ -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) {