Ignore whitespace from file.
This commit is contained in:
parent
005799b398
commit
274375b3e0
|
@ -8,7 +8,7 @@ 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()
|
||||
const currentIp = await getIp().replace(/\s/g, "")
|
||||
const cachedOldIp = fs.readFileSync("./ip.cache").toString()
|
||||
let oldIp = cachedOldIp ? cachedOldIp : currentIp
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user