mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +00:00
Allow --script-timeout 0 to mean 'no timeout' to override -T5
This commit is contained in:
2
nmap.cc
2
nmap.cc
@@ -749,7 +749,7 @@ void parse_options(int argc, char **argv) {
|
||||
o.chooseScripts(optarg);
|
||||
} else if (optcmp(long_options[option_index].name, "script-timeout") == 0) {
|
||||
l = tval2secs(optarg);
|
||||
if ( l <= 0 )
|
||||
if ( l < 0 )
|
||||
fatal("Bogus --script-timeout argument specified");
|
||||
delayed_options.pre_scripttimeout = l;
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user