mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 13:09:02 +00:00
Avoid warning about --defeat-rst-ratelimit when TCP scan was not even done. Fixes #727
This commit is contained in:
@@ -664,7 +664,7 @@ void printportoutput(Target *currenths, PortList *plist) {
|
|||||||
|
|
||||||
if (prevstate != PORT_UNKNOWN) {
|
if (prevstate != PORT_UNKNOWN) {
|
||||||
log_write(LOG_PLAIN, "\n");
|
log_write(LOG_PLAIN, "\n");
|
||||||
if (o.defeat_rst_ratelimit) {
|
if (o.defeat_rst_ratelimit && o.TCPScan()) {
|
||||||
log_write(LOG_PLAIN, "Some closed ports may be reported as filtered due to --defeat-rst-ratelimit\n");
|
log_write(LOG_PLAIN, "Some closed ports may be reported as filtered due to --defeat-rst-ratelimit\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user