From 74296582e241ce8f4db1e2da5f5efa153fb998e3 Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 30 Oct 2020 14:07:02 +0000 Subject: [PATCH] Hide a minor warning behind -v. Fixes #2166 --- nmap.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nmap.cc b/nmap.cc index 6e3e91e63..d844e7886 100644 --- a/nmap.cc +++ b/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') {