fold sysinfo into network

the backends are network backends
This commit is contained in:
Girish Ramakrishnan
2023-08-03 13:38:42 +05:30
parent a4d57e7b08
commit 47d57a3971
23 changed files with 143 additions and 161 deletions
+1 -2
View File
@@ -25,7 +25,6 @@ const assert = require('assert'),
safe = require('safetydance'),
semver = require('semver'),
settings = require('./settings.js'),
sysinfo = require('./sysinfo.js'),
paths = require('./paths.js'),
users = require('./users.js'),
tld = require('tldjs'),
@@ -230,7 +229,7 @@ async function restore(backupConfig, remotePath, version, ipv4Config, options, a
backupConfig.encryption = null;
}
error = await sysinfo.testIPv4Config(ipv4Config);
error = await network.testIPv4Config(ipv4Config);
if (error) throw error;
safe(restoreTask(backupConfig, remotePath, ipv4Config, options, auditSource), { debug }); // now that args are validated run the task in the background