(Grav GitSync) Automatic Commit from tanshu

This commit is contained in:
tanshu 2018-03-03 17:16:31 +00:00 committed by GitSync
parent 1dacf302c0
commit 43bc5bff3f

View File

@ -39,7 +39,7 @@ Create the following script with name `TanDNS` and the following permissions `wr
# The update URL. Note the "\3F" is hex for question mark (?). Required since ? is a special character in commands. # The update URL. Note the "\3F" is hex for question mark (?). Required since ? is a special character in commands.
:local url "http://bifrost.tanshu.com/update\3Fdomain=$host" :local url "http://bifrost.tanshu.com/update\3Fdomain=$host"
:log info "TanDNS: Sending update for $host" :log info "TanDNS: Sending update for $host"
/tool fetch url=$url user=$user password=$pass mode=http dst-path=("TanDNSupdate-" . $host . ".txt") /tool fetch url=$url user=$user password=$pass mode=http keep-result=no
:log info "TanDNS: Host $host updated on TanDNS with IP $currentIP" :log info "TanDNS: Host $host updated on TanDNS with IP $currentIP"
} else={ } else={
:log info "TanDNS: Previous IP $previousIP and current IP equal, no update need" :log info "TanDNS: Previous IP $previousIP and current IP equal, no update need"