Browse Source

cluster: fix wg0.conf generator

Signed-off-by: Alejandro Mery <amery@jpi.io>
pull/54/head
Alejandro Mery 4 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 { switch {
case r.ID == 0: case r.ID == rings.RingZeroID:
r.setRingZeroAllowedIPs(rp) r.setRingZeroAllowedIPs(rp)
case p.IsGateway(): case p.IsGateway():
r.setRingOneGatewayAllowedIPs(rp) r.setRingOneGatewayAllowedIPs(rp)

Loading…
Cancel
Save