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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user