1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Apply 1-line fix from Jah which now properly counts traceroute ping scan IPs (previously it would say things like 'WARNING: No targets were specified, so 0 hosts scanned.' and 'Nmap done: 0 IP addresses (1 host up) scanned'

This commit is contained in:
fyodor
2009-06-10 01:56:46 +00:00
parent f234bb18fb
commit 2a5750baef

View File

@@ -1817,6 +1817,7 @@ int nmap_main(int argc, char *argv[]) {
* trace is first */
while(!Targets.empty()) {
currenths = *Targets.begin();
o.numhosts_scanned++;
log_write(LOG_XML, "<host>");
write_host_status(currenths, o.resolve_all);
printmacinfo(currenths);