vpn: 'with pre-shared key' flag

This commit is contained in:
Mikaël Cluseau 2022-03-31 17:24:12 +02:00
parent b11c53b36a
commit 40403eca85

View File

@ -114,10 +114,11 @@ type VPNDef struct {
} }
type VPNPeer struct { type VPNPeer struct {
PublicKey string `yaml:"public_key"` PublicKey string `yaml:"public_key"`
Endpoint *net.UDPAddr WithPreSharedKey bool `yaml:"with_preshared_key"`
KeepAlive time.Duration `yaml:"keepalive"` Endpoint *net.UDPAddr
AllowedIPs []string `yaml:"allowed_ips"` KeepAlive time.Duration `yaml:"keepalive"`
AllowedIPs []string `yaml:"allowed_ips"`
} }
type GroupDef struct { type GroupDef struct {