zones: set zoneID based on wireguard config files

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-08-22 17:50:38 +00:00
parent f5ee63e5aa
commit 589fb2f0e1
2 changed files with 72 additions and 0 deletions
+6
View File
@@ -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()
}