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

Don't print out a "Host not scanned" line when doing list scan.

This commit is contained in:
david
2009-10-27 22:49:23 +00:00
parent f7ea96b349
commit 779b6cec2e

View File

@@ -1448,8 +1448,7 @@ void write_host_header(Target *currenths) {
for all hosts (even down ones) to be resolved */
void write_host_status(Target * currenths, int resolve_all) {
if (o.listscan) {
/* write "unknown" to stdout, machine, and xml */
log_write(LOG_PLAIN, "Host not scanned\n");
/* write "unknown" to machine and xml */
log_write(LOG_MACHINE, "Host: %s (%s)\tStatus: Unknown\n",
currenths->targetipstr(), currenths->HostName());
write_xml_initial_hostinfo(currenths, "unknown");