Compare commits

..

No commits in common. '593f88e2a377cfbf67c93d90e6228d6be5afd5ce' and 'f9462d3e0b5524b44c9012607e9d9c0b5f650cd3' have entirely different histories.

  1. 8
      pkg/cluster/wireguard.go

8
pkg/cluster/wireguard.go

@ -97,10 +97,14 @@ func (m *Cluster) WriteWireguardConfig(ring rings.RingID) error {
// WriteWireguardConfig rewrites all wgN.conf on all machines
// on the Zone attached to that ring
func (z *Zone) WriteWireguardConfig(ring rings.RingID) error {
if ring == rings.RingZeroID || ring == rings.RingOneID {
switch ring {
case rings.RingZeroID:
return writeWireguardConfig(z.zones, z.zones, ring)
case rings.RingOneID:
return writeWireguardConfig(z.zones, z, ring)
default:
return ErrInvalidRing(ring)
}
return ErrInvalidRing(ring)
}
func writeWireguardConfig(z ZoneIterator, m MachineIterator, ring rings.RingID) error {

Loading…
Cancel
Save