mirror of
https://github.com/nmap/nmap.git
synced 2026-08-28 04:25:15 +00:00
Merge 2055a9b0e1 into db4aefddfa
This commit is contained in:
commit
061fae3773
1 changed files with 2 additions and 2 deletions
|
|
@ -893,10 +893,10 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
o.target = argv[optind];
|
||||
/* resolve hostname only if o.proxytype == NULL
|
||||
/* resolve hostname only if o.proxytype == NULL or o.listen == 1
|
||||
* targetss contains data already and you don't want remove them
|
||||
*/
|
||||
if( !o.proxytype
|
||||
if( (!o.proxytype || o.listen)
|
||||
&& (rc = resolve_multi(o.target, 0, targetaddrs, o.af)) != 0)
|
||||
|
||||
bye("Could not resolve hostname \"%s\": %s.", o.target, gai_strerror(rc));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue