diff --git a/output.cc b/output.cc index b53995fb8..fe5bbba4e 100644 --- a/output.cc +++ b/output.cc @@ -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"); } }