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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user