Win10批处理BAT抓取本机IPV6地址,并curl更新ddns到he.net
@echo off
:start
for /f "tokens=16" %%i in ('ipconfig ^|find /i "ipv6"') do set ip=%%i
curl -s -x socks5://127.0.0.1:1080 "https://dyn.dns.he.net/nic/update?hostname=xx.xx&password=xxxxxx&myip=%ip%"
choice /t 600 /d y /m "_ %date% %time% Waiting 600s"
goto start
curl -s隐藏进度条 -x代理
choice /t等待秒 /d默认回答y /m显示提示语