#JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
result='127.0.0.2'
while :
do
resultNew=$(curl -s "http://members.3322.org/dyndns/getip")
if [ "${result}" != "$resultNew" ]
then
curl -s 'https://dynv6.com/api/update?zone=wwwsa.dynv6.net&token=i9x4oehizeMLxF6b8gve5aCJDSR71m&ipv4='"$resultNew"
#resultUpdate=$(curl -s 'https://dynv6.com/api/update?zone=regexp.dynv6.net&token=i9x4oehizeMLxF6b8gve5aCJDSR71m&ipv4=192.168.2.21')
#echo $resultUpdate
result="$resultNew"
else
echo 'its eq'
fi
sleep 10
done