mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 17:59:04 +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);
|
o.chooseScripts(optarg);
|
||||||
} else if (optcmp(long_options[option_index].name, "script-timeout") == 0) {
|
} else if (optcmp(long_options[option_index].name, "script-timeout") == 0) {
|
||||||
l = tval2secs(optarg);
|
l = tval2secs(optarg);
|
||||||
if ( l <= 0 )
|
if ( l < 0 )
|
||||||
fatal("Bogus --script-timeout argument specified");
|
fatal("Bogus --script-timeout argument specified");
|
||||||
delayed_options.pre_scripttimeout = l;
|
delayed_options.pre_scripttimeout = l;
|
||||||
} else
|
} else
|
||||||
|
|||||||
Reference in New Issue
Block a user