diff --git a/modules/checkers/ip-changed.js b/modules/checkers/ip-changed.js index 3ce5fd3..3c5d86f 100644 --- a/modules/checkers/ip-changed.js +++ b/modules/checkers/ip-changed.js @@ -10,7 +10,7 @@ const getIp = async () => await publicIp.v4({ onlyHttps: true }) const currentIp = await getIp() const cachedOldIp = fs.readFileSync("./ip.cache").toString() -let oldIp = cachedOldIp ? oldIp : currentIp +let oldIp = cachedOldIp ? cachedOldIp : currentIp async function checkIp(sendMessage) { log("Checking for IP changes...")