Browse Source

cluster: fix wg0.conf generator

Signed-off-by: Alejandro Mery <amery@jpi.io>
pull/54/head
Alejandro Mery 5 months ago
parent
commit
01ef75a020
  1. 2
      pkg/cluster/rings.go

2
pkg/cluster/rings.go

@ -202,7 +202,7 @@ func (r *Ring) AddPeer(p *Machine) bool {
}
switch {
case r.ID == 0:
case r.ID == rings.RingZeroID:
r.setRingZeroAllowedIPs(rp)
case p.IsGateway():
r.setRingOneGatewayAllowedIPs(rp)

Loading…
Cancel
Save