nfqws: autohostlist fail counter reset on non-RST

This commit is contained in:
bol-van 2024-07-16 14:12:11 +03:00
parent b44c697171
commit 2ae426c7ab
13 changed files with 3 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -557,10 +557,7 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint
HOSTLIST_DEBUGLOG_APPEND("%s : redirect to another domain", ctrack->hostname); HOSTLIST_DEBUGLOG_APPEND("%s : redirect to another domain", ctrack->hostname);
} }
else else
{
DLOG("local or in-domain redirect detected. it's not a DPI redirect.\n") DLOG("local or in-domain redirect detected. it's not a DPI redirect.\n")
auto_hostlist_reset_fail_counter(ctrack->hostname);
}
} }
else else
{ {
@ -570,6 +567,9 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint
} }
if (bFail) if (bFail)
auto_hostlist_failed(ctrack->hostname); auto_hostlist_failed(ctrack->hostname);
else
if (len_payload)
auto_hostlist_reset_fail_counter(ctrack->hostname);
if (tcphdr->th_flags & TH_RST) if (tcphdr->th_flags & TH_RST)
ConntrackClearHostname(ctrack); // do not react to further dup RSTs ConntrackClearHostname(ctrack); // do not react to further dup RSTs
} }