Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cedar/IPsec.c')
-rw-r--r--src/Cedar/IPsec.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Cedar/IPsec.c b/src/Cedar/IPsec.c
index c9f708a0..92a8ccbf 100644
--- a/src/Cedar/IPsec.c
+++ b/src/Cedar/IPsec.c
@@ -381,6 +381,13 @@ void IPsecServerUdpPacketRecvProc(UDPLISTENER *u, LIST *packet_list)
ike->Now = now;
+ if (now >= ike->NextInfoMsgQuotaClearTick)
+ {
+ ike->NextInfoMsgQuotaClearTick = now + 1000ULL;
+
+ IkeInfoMsgQuotaDeleteAll(ike);
+ }
+
if (ipsec_disable == false)
{
{