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:
2
nmap.cc
2
nmap.cc
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user