Dnspod DDNS script on LEDE

先安装wget-ssl

local __URL="https://dnsapi.cn/Record.Ddns"
local __POSTDATA=""

[ $use_https -ne 0 ] && __URL=$(echo $__URL | sed -e 's#^http:#https:#')

wget-ssl -nv -t 1 -O $DATFILE -o $ERRFILE -U "IPUpdater/1.0.1 ([email protected])" --no-check-certificate --post-data="$__POSTDATA" "$__URL" || return 1

write_log 7 "DDNS Provider answered:\n$(cat $DATFILE)"

grep -i -E "successful" $DATFILE >/dev/null 2>&1
return $? 

你可能感兴趣的:(linux,LEDE,DDNS)