Add peer add and delete support

This commit is contained in:
Michael Crosby 2019-07-10 21:35:46 +00:00
parent 8dde47dfe3
commit 99b6b1577b
5 changed files with 838 additions and 148 deletions

View file

@ -47,7 +47,7 @@ PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -
{{end}}
{{range $peer := .Peers -}}
# {{$peer.Comment}}
# {{$peer.ID}}
[Peer]
PublicKey = {{$peer.PublicKey}}
AllowedIPs = {{joinIPs $peer.AllowedIPs}}