diff --git a/source/shared_lib/sources/platform/posix/socket.cpp b/source/shared_lib/sources/platform/posix/socket.cpp index 31dc9474c..4e9eca69b 100644 --- a/source/shared_lib/sources/platform/posix/socket.cpp +++ b/source/shared_lib/sources/platform/posix/socket.cpp @@ -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 UPNPPortForwardList) {