正在获取 IP 地址...
Linux / macOS
bash
curl -s http://your-domain/api/ip
CMD
cmd
curl -s http://your-domain/api/ip
PowerShell
powershell
Invoke-RestMethod -Uri http://your-domain/api/ip
返回格式为 JSON:{"ip":"x.x.x.x"}
脚本中使用:MY_IP=$(curl -s http://your-domain/api/ip)