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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user