Browse Source

jpictl: do SyncWireguardConfig() on `write`

Signed-off-by: Alejandro Mery <amery@jpi.io>
pull/1/head
Alejandro Mery 1 year ago
parent
commit
9762e78f5e
  1. 4
      pkg/zones/sync.go

4
pkg/zones/sync.go

@ -18,12 +18,12 @@ func (m *Zones) SyncAllWireguard() error {
var err error
for ring := 0; ring < RingsCount; ring++ {
err = m.PruneWireguardConfig(ring)
err = m.WriteWireguardKeys(ring)
if err != nil {
return err
}
err = m.WriteWireguardKeys(ring)
err = m.SyncWireguardConfig(ring)
if err != nil {
return err
}

Loading…
Cancel
Save