From 40403eca850ff6d74df8f32e9d03e789394b7d99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Cluseau?= Date: Thu, 31 Mar 2022 17:24:12 +0200 Subject: [PATCH] vpn: 'with pre-shared key' flag --- config/config.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config/config.go b/config/config.go index a639796..15af8e3 100644 --- a/config/config.go +++ b/config/config.go @@ -114,10 +114,11 @@ type VPNDef struct { } type VPNPeer struct { - PublicKey string `yaml:"public_key"` - Endpoint *net.UDPAddr - KeepAlive time.Duration `yaml:"keepalive"` - AllowedIPs []string `yaml:"allowed_ips"` + PublicKey string `yaml:"public_key"` + WithPreSharedKey bool `yaml:"with_preshared_key"` + Endpoint *net.UDPAddr + KeepAlive time.Duration `yaml:"keepalive"` + AllowedIPs []string `yaml:"allowed_ips"` } type GroupDef struct {