From 1cff39932c271f6349b1c07342493bce98efb3f6 Mon Sep 17 00:00:00 2001 From: BurnyLlama Date: Wed, 1 Jun 2022 12:44:09 +0200 Subject: [PATCH] Oops. --- modules/checkers/ip-changed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/checkers/ip-changed.js b/modules/checkers/ip-changed.js index 16b052b..26e1c14 100644 --- a/modules/checkers/ip-changed.js +++ b/modules/checkers/ip-changed.js @@ -8,8 +8,8 @@ if (!fs.existsSync("./ip.cache")) fs.writeFileSync("./ip.cache", "") const log = getLogger("IP Watcher", settings.checkers["ip-changed"].color) const getIp = async () => await publicIp.v4({ onlyHttps: true }) -const currentIp = await getIp().replace(/\s/g, "") -const cachedOldIp = fs.readFileSync("./ip.cache").toString() +const currentIp = await getIp() +const cachedOldIp = fs.readFileSync("./ip.cache").toString().replace(/\s/g, "") let oldIp = cachedOldIp ? cachedOldIp : currentIp async function checkIp(sendMessage) {