From 0b1323193a29afd2edb8d17bdc4a833bf7a23000 Mon Sep 17 00:00:00 2001 From: albexk Date: Sat, 16 Mar 2024 14:43:32 +0300 Subject: [PATCH] Fix wg reconnection problem after awg connection --- device/device.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/device/device.go b/device/device.go index 24ae1ea..21a6546 100644 --- a/device/device.go +++ b/device/device.go @@ -562,6 +562,11 @@ func (device *Device) isAdvancedSecurityOn() bool { func (device *Device) handlePostConfig(tempASecCfg *aSecCfgType) (err error) { if !tempASecCfg.isSet { + // restore default values + MessageInitiationType = 1 + MessageResponseType = 2 + MessageCookieReplyType = 3 + MessageTransportType = 4 return err }