Add an 'address' field to devices. Can be hostname, ipv4 or ipv6
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user