1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Abstract nsock logging function to avoid nsock.h inclusion in output.h

This commit is contained in:
dmiller
2020-01-11 16:03:28 +00:00
parent 6ed754b438
commit a2c75e0ef4
6 changed files with 11 additions and 7 deletions

View File

@@ -2851,7 +2851,7 @@ int service_scan(std::vector<Target *> &Targets) {
if ((nsp = nsock_pool_new(SG)) == NULL) {
fatal("%s() failed to create new nsock pool.", __func__);
}
nsock_set_log_function(nmap_nsock_stderr_logger);
nmap_set_nsock_logger();
nmap_adjust_loglevel(o.versionTrace());
nsock_pool_set_device(nsp, o.device);