Add an 'address' field to devices. Can be hostname, ipv4 or ipv6

This commit is contained in:
Pim van Pelt
2025-07-06 18:17:32 +02:00
parent 4a95221732
commit d212abcc87
5 changed files with 180 additions and 18 deletions

View File

@ -100,7 +100,7 @@ func main() {
}
// Create backup instance
backup := NewRouterBackup(hostname, user, password, keyFile, port)
backup := NewRouterBackup(hostname, deviceConfig.Address, user, password, keyFile, port)
// Connect and backup
if err := backup.Connect(); err != nil {