1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-18 12:19:02 +00:00

Hide new logdebug messages unless o.debug.

This commit is contained in:
david
2013-08-06 03:59:00 +00:00
parent 2cda8ca150
commit fef7fc0e6d
3 changed files with 7 additions and 4 deletions

View File

@@ -221,7 +221,8 @@ int ncat_http_server(void)
for (i = 0; i < num_listenaddrs; i++) {
listen_socket[num_sockets] = do_listen(SOCK_STREAM, IPPROTO_TCP, &listenaddrs[i]);
if (listen_socket[num_sockets] == -1) {
logdebug("do_listen(\"%s\"): %s\n", inet_ntop_ez(&listenaddrs[i].storage, sizeof(listenaddrs[i].storage)), socket_strerror(socket_errno()));
if (o.debug > 0)
logdebug("do_listen(\"%s\"): %s\n", inet_ntop_ez(&listenaddrs[i].storage, sizeof(listenaddrs[i].storage)), socket_strerror(socket_errno()));
continue;
}