restore: validate ipv6 config

This commit is contained in:
Girish Ramakrishnan
2025-12-02 15:19:59 +01:00
parent 964fb5d251
commit a5497dc215
+5 -2
View File
@@ -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) {