1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-30 11:29:01 +00:00

Don't repeat the host name and IP address in "Host is up/down" messages.

Don't print the "Nmap scan report" header if there's nothing to put
under it.
This commit is contained in:
david
2009-10-27 05:26:40 +00:00
parent cb9222bd20
commit 030411ffd8
2 changed files with 8 additions and 14 deletions

View File

@@ -1728,7 +1728,7 @@ int nmap_main(int argc, char *argv[]) {
) || o.listscan) {
/* We're done with the hosts */
log_write(LOG_XML, "<host>");
write_host_status(currenths, o.resolve_all);
write_host_header(currenths);
printmacinfo(currenths);
// if (currenths->flags & HOST_UP)
// log_write(LOG_PLAIN,"\n");