mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
fix an error message--specifying timeout values in days is not actually supported
This commit is contained in:
parent
5d12eb7a3d
commit
1508da5acc
1 changed files with 1 additions and 1 deletions
2
nmap.cc
2
nmap.cc
|
|
@ -779,7 +779,7 @@ int nmap_main(int argc, char *argv[]) {
|
|||
}
|
||||
} else if (optcmp(long_options[option_index].name, "host-timeout") == 0) {
|
||||
l = tval2msecs(optarg);
|
||||
if (l <= 1500) fatal("--host-timeout is specified in milliseconds unless you qualify it by appending 's', 'm', 'h', or 'd'. The value must be greater than 1500 milliseconds");
|
||||
if (l <= 1500) fatal("--host-timeout is specified in milliseconds unless you qualify it by appending 's', 'm', or 'h'. The value must be greater than 1500 milliseconds");
|
||||
pre_host_timeout = l;
|
||||
if (l < 15000) {
|
||||
error("host-timeout is given in milliseconds, so you specified less than 15 seconds (%lims). This is allowed but not recommended.", l);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue