mirror of
https://github.com/nmap/nmap.git
synced 2026-01-20 13:19:01 +00:00
Hide a minor warning behind -v. Fixes #2166
This commit is contained in:
3
nmap.cc
3
nmap.cc
@@ -1121,7 +1121,8 @@ void parse_options(int argc, char **argv) {
|
||||
Snprintf(buf, 3, "P%c", *optarg);
|
||||
delayed_options.warn_deprecated(buf, "Pn");
|
||||
}
|
||||
error("Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times will be slower.");
|
||||
if (o.verbose > 0)
|
||||
error("Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times will be slower.");
|
||||
o.pingtype |= PINGTYPE_NONE;
|
||||
}
|
||||
else if (*optarg == 'R') {
|
||||
|
||||
Reference in New Issue
Block a user