1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 01:49:03 +00:00

Add a note to the failed to resolve error message that you might need to use -6. It is a mistake I keep making :)

This commit is contained in:
fyodor
2011-09-19 23:37:05 +00:00
parent 339477c675
commit cee8ed9068

View File

@@ -186,7 +186,7 @@ int TargetGroup::parse_expr(const char * const target_expr, int af) {
freeaddrinfo(addrs);
if (resolvedaddrs.empty()) {
error("Failed to resolve given hostname/IP: %s. Note that you can't use '/mask' AND '1-4,7,100-' style IP ranges", target_net);
error("Failed to resolve given hostname/IP: %s. Note that you can't use '/mask' AND '1-4,7,100-' style IP ranges. If the machine only has an IPv6 address, add the Nmap -6 flag to scan that.", target_net);
free(hostexp);
return 1;
} else {