msg=`${timestamp()}, ${opts.network}: FATAL the pending change of ip address was not realized in ${timeout*(opts.debug?10:60)} seconds. Human attention required`
console.log(msg)
notify(msg)
},timeout*1000*(opts.debug?10:60))
constcheck=setInterval(async()=>{
if(curr===(awaitlookup(rname)).address){
msg=`Update Succeeded, lookup of ${rname} is now ${curr}`
clearInterval(check)
}elsemsg=`Update Pending, will check again in ${(opts.lookup||{}).interval || 10 } seconds`
console.log(msg)
notify(msg)
clearTimeout(fail)
console.log(msg)
notify(msg)
}else{
msg=`Update Pending, will check again in ${interval} seconds`
if(verbose||opts.debug){
notify(msg)
console.log(msg)
}
}
}
,(opts.lookup||{}).interval*1000||10000)
// const fail = setTimeout(,timeout)
,interval*1000)
}elseconsole.log('Public IP has not changed, nothing to do',saved)