1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Simplify: No way to have only 1 scanned port in ignored state.

This commit is contained in:
dmiller
2020-12-17 17:34:32 +00:00
parent d0cf36c0a7
commit 790beb2419

View File

@@ -550,11 +550,9 @@ void printportoutput(Target *currenths, PortList *plist) {
log_write(LOG_PLAIN, "0 ports scanned on %s\n", log_write(LOG_PLAIN, "0 ports scanned on %s\n",
currenths->NameIP(hostname, sizeof(hostname))); currenths->NameIP(hostname, sizeof(hostname)));
} else { } else {
log_write(LOG_PLAIN, "%s %d scanned %s on %s %s ", log_write(LOG_PLAIN, "All %d scanned ports on %s are ",
(numignoredports == 1) ? "The" : "All", numignoredports, numignoredports,
(numignoredports == 1) ? "port" : "ports", currenths->NameIP(hostname, sizeof(hostname)));
currenths->NameIP(hostname, sizeof(hostname)),
(numignoredports == 1) ? "is" : "are");
if (plist->numIgnoredStates() == 1) { if (plist->numIgnoredStates() == 1) {
log_write(LOG_PLAIN, "%s", statenum2str(plist->nextIgnoredState(PORT_UNKNOWN))); log_write(LOG_PLAIN, "%s", statenum2str(plist->nextIgnoredState(PORT_UNKNOWN)));
} else { } else {