Skip to content

Commit 7429658

Browse files
committed
Hide a minor warning behind -v. Fixes nmap#2166
1 parent 9ac591f commit 7429658

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nmap.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,8 @@ void parse_options(int argc, char **argv) {
11211121
Snprintf(buf, 3, "P%c", *optarg);
11221122
delayed_options.warn_deprecated(buf, "Pn");
11231123
}
1124-
error("Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times will be slower.");
1124+
if (o.verbose > 0)
1125+
error("Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times will be slower.");
11251126
o.pingtype |= PINGTYPE_NONE;
11261127
}
11271128
else if (*optarg == 'R') {

0 commit comments

Comments
 (0)