mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 20:20:53 +03:00
nfqws: fix cutoff limiter
This commit is contained in:
parent
2cd6db3ba5
commit
7ff4214b5b
@ -630,7 +630,6 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint
|
|||||||
{
|
{
|
||||||
dp = ctrack->dp;
|
dp = ctrack->dp;
|
||||||
ctrack_replay = ctrack;
|
ctrack_replay = ctrack;
|
||||||
maybe_cutoff(ctrack, IPPROTO_TCP);
|
|
||||||
}
|
}
|
||||||
if (dp)
|
if (dp)
|
||||||
DLOG("using cached desync profile %d\n",dp->n);
|
DLOG("using cached desync profile %d\n",dp->n);
|
||||||
@ -648,6 +647,7 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint
|
|||||||
DLOG("matching desync profile not found\n");
|
DLOG("matching desync profile not found\n");
|
||||||
return verdict;
|
return verdict;
|
||||||
}
|
}
|
||||||
|
maybe_cutoff(ctrack, IPPROTO_TCP);
|
||||||
|
|
||||||
HostFailPoolPurgeRateLimited(&dp->hostlist_auto_fail_counters);
|
HostFailPoolPurgeRateLimited(&dp->hostlist_auto_fail_counters);
|
||||||
|
|
||||||
@ -1435,7 +1435,6 @@ static uint8_t dpi_desync_udp_packet_play(bool replay, size_t reasm_offset, uint
|
|||||||
{
|
{
|
||||||
dp = ctrack->dp;
|
dp = ctrack->dp;
|
||||||
ctrack_replay = ctrack;
|
ctrack_replay = ctrack;
|
||||||
maybe_cutoff(ctrack, IPPROTO_UDP);
|
|
||||||
}
|
}
|
||||||
if (dp)
|
if (dp)
|
||||||
DLOG("using cached desync profile %d\n",dp->n);
|
DLOG("using cached desync profile %d\n",dp->n);
|
||||||
@ -1453,6 +1452,7 @@ static uint8_t dpi_desync_udp_packet_play(bool replay, size_t reasm_offset, uint
|
|||||||
DLOG("matching desync profile not found\n");
|
DLOG("matching desync profile not found\n");
|
||||||
return verdict;
|
return verdict;
|
||||||
}
|
}
|
||||||
|
maybe_cutoff(ctrack, IPPROTO_UDP);
|
||||||
|
|
||||||
HostFailPoolPurgeRateLimited(&dp->hostlist_auto_fail_counters);
|
HostFailPoolPurgeRateLimited(&dp->hostlist_auto_fail_counters);
|
||||||
//ConntrackPoolDump(¶ms.conntrack);
|
//ConntrackPoolDump(¶ms.conntrack);
|
||||||
|
Loading…
Reference in New Issue
Block a user