mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 07:31:21 +02:00
- only show debug when verbose enabled
This commit is contained in:
@@ -2239,17 +2239,17 @@ void UPNP_Tools::upnp_rem_redirect(int ext_port) {
|
|||||||
char ext_port_str[16]="";
|
char ext_port_str[16]="";
|
||||||
sprintf(ext_port_str, "%d", ext_port);
|
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
|
#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);
|
UPNP_DeletePortMapping(urls.controlURL, data.first.servicetype, ext_port_str, "TCP", 0);
|
||||||
#else
|
#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);
|
UPNP_DeletePortMapping(urls.controlURL, data.servicetype, ext_port_str, "TCP", 0);
|
||||||
#endif
|
#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) {
|
void UPNP_Tools::NETaddRedirects(std::vector<int> UPNPPortForwardList) {
|
||||||
|
Reference in New Issue
Block a user