mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 23:40:57 +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:
parent
cb9222bd20
commit
030411ffd8
2 changed files with 8 additions and 14 deletions
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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue