mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41: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:
1
nmap.cc
1
nmap.cc
@@ -1817,6 +1817,7 @@ int nmap_main(int argc, char *argv[]) {
|
|||||||
* trace is first */
|
* trace is first */
|
||||||
while(!Targets.empty()) {
|
while(!Targets.empty()) {
|
||||||
currenths = *Targets.begin();
|
currenths = *Targets.begin();
|
||||||
|
o.numhosts_scanned++;
|
||||||
log_write(LOG_XML, "<host>");
|
log_write(LOG_XML, "<host>");
|
||||||
write_host_status(currenths, o.resolve_all);
|
write_host_status(currenths, o.resolve_all);
|
||||||
printmacinfo(currenths);
|
printmacinfo(currenths);
|
||||||
|
|||||||
Reference in New Issue
Block a user