zones: set zoneID based on wireguard config files
Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
@@ -26,5 +26,11 @@ func (m *Machine) updatePublicAddresses() error {
|
||||
}
|
||||
|
||||
func (m *Machine) scan() error {
|
||||
for i := 0; i < RingsCount; i++ {
|
||||
if err := m.tryApplyWireguardConfig(i); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return m.updatePublicAddresses()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user