mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
If verbosity is greater than 1 (i.e. -vv or higher is used), automatically do reason display (i.e. --reason).
This commit is contained in:
3
nmap.cc
3
nmap.cc
@@ -1462,6 +1462,9 @@ void apply_delayed_options() {
|
||||
free(delayed_options.xmlfilename);
|
||||
}
|
||||
|
||||
if (o.verbose > 1)
|
||||
o.reason = true;
|
||||
|
||||
// ISO 8601 date/time -- http://www.cl.cam.ac.uk/~mgk25/iso-time.html
|
||||
if (strftime(tbuf, sizeof(tbuf), "%Y-%m-%d %H:%M %Z", local_time) <= 0)
|
||||
fatal("Unable to properly format time");
|
||||
|
||||
Reference in New Issue
Block a user