Bugs fixed
This commit is contained in:
parent
beb5baf3f6
commit
ba1cbd431d
8
index.js
8
index.js
|
@ -76,9 +76,6 @@ async function updateProxy() {
|
|||
return;
|
||||
}
|
||||
|
||||
lastInfoHash = infoHash;
|
||||
fs.writeFileSync(hashFile, infoHash);
|
||||
|
||||
// Creating configuration file
|
||||
|
||||
let tmpConf = `${tmpDir}/config.cfg`;
|
||||
|
@ -111,6 +108,11 @@ async function updateProxy() {
|
|||
await sshClient.dispose();
|
||||
}
|
||||
|
||||
// Saving applied config hash
|
||||
|
||||
lastInfoHash = infoHash;
|
||||
fs.writeFileSync(hashFile, infoHash);
|
||||
|
||||
console.log('Configuration updated.');
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue