add missing pubkey

This commit is contained in:
Callan Bryant 2020-10-19 03:17:06 +01:00
parent fceddc55dd
commit ce9091e8bc
No known key found for this signature in database
GPG Key ID: C31FA9DF3ACBFFAA

4
add.go
View File

@ -33,8 +33,8 @@ set interfaces wireguard wg0 preshared-key {{ .Peer.PresharedKey.Key }}
{{ end }}
set interfaces wireguard wg0 peer {{ .DsnetConfig.PrivateKey.PublicKey.Key }} endpoint {{ .DsnetConfig.ExternalIP }}:{{ .DsnetConfig.ListenPort }}
set interfaces wireguard wg0 peer allowed-ips {{ .AllowedIPs }}
set interfaces wireguard wg0 peer persistent-keepalive {{ .Keepalive }}
set interfaces wireguard wg0 peer {{ .DsnetConfig.PrivateKey.PublicKey.Key }} allowed-ips {{ .AllowedIPs }}
set interfaces wireguard wg0 peer {{ .DsnetConfig.PrivateKey.PublicKey.Key }} persistent-keepalive {{ .Keepalive }}
commit; save
`