Fix wg reconnection problem after awg connection

This commit is contained in:
albexk 2024-03-16 14:43:32 +03:00 committed by pokamest
parent 4dddf62e57
commit 3f0a3bcfa0

View file

@ -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
}