1
0
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:
dmiller
2020-10-30 14:07:02 +00:00
parent 9ac591f9db
commit 74296582e2

View File

@@ -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') {