1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-04 21:59:02 +00:00

Suggest a reason why '-' cannot be resolved

This commit is contained in:
dmiller
2021-12-16 23:29:15 +00:00
parent 3cf836c9b5
commit 3fe254abcc

View File

@@ -802,6 +802,8 @@ int TargetGroup::get_next_host(struct sockaddr_storage *ss, size_t *sslen) {
}
else {
error("Failed to resolve \"%s\".", this->netblock->hostname.c_str());
if (this->netblock->hostname == "-")
error("Bare '-': did you put a space between '--'?");
return -1;
}