mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 20:29:03 +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) {
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user