restore: validate ipv6 config
This commit is contained in:
+5
-2
@@ -257,8 +257,11 @@ async function restore(backupConfig, remotePath, version, ipv4Config, ipv6Config
|
||||
encryptedFilenames: !!backupConfig.encryptedFilenames
|
||||
});
|
||||
|
||||
const error = await network.testIPv4Config(ipv4Config);
|
||||
if (error) throw error;
|
||||
const ipv4Error = await network.testIPv4Config(ipv4Config);
|
||||
if (ipv4Error) throw ipv4Error;
|
||||
|
||||
const ipv6Error = await network.testIPv6Config(ipv6Config);
|
||||
if (ipv6Error) throw ipv6Error;
|
||||
|
||||
safe(restoreTask(backupSite, remotePath, ipv4Config, ipv6Config, options, auditSource), { debug }); // now that args are validated run the task in the background
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user