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_IKE.c')
-rw-r--r--src/Cedar/IPsec_IKE.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Cedar/IPsec_IKE.c b/src/Cedar/IPsec_IKE.c
index 4f4f9a89..902678a6 100644
--- a/src/Cedar/IPsec_IKE.c
+++ b/src/Cedar/IPsec_IKE.c
@@ -135,7 +135,10 @@ void ProcIKEPacketRecv(IKE_SERVER *ike, UDPPACKET *p)
break;
case IKE_EXCHANGE_TYPE_AGGRESSIVE: // Aggressive mode
- ProcIkeAggressiveModePacketRecv(ike, p, header);
+ if (ike->Cedar->Server->DisableIPsecAggressiveMode == false)
+ {
+ ProcIkeAggressiveModePacketRecv(ike, p, header);
+ }
break;
case IKE_EXCHANGE_TYPE_QUICK: // Quick mode