helloxz / ccaa

此项目不再维护,推荐使用Zdir替代!
https://www.zdir.pro/zh/
MIT License
1k stars 305 forks source link

我是这么判断 osip 的 #66

Open crazypeace opened 1 year ago

crazypeace commented 1 year ago
osip=$(curl -4s --connect-timeout 3 https://www.cloudflare.com/cdn-cgi/trace | grep ip= | sed -e "s/ip=//g")
if [[ -z $osip ]]; then
    osip=$(curl -6s https://www.cloudflare.com/cdn-cgi/trace | grep ip= | sed -e "s/ip=//g")
fi

https://github.com/crazypeace/ccaa