ccaa
ccaa copied to clipboard
我是这么判断 osip 的
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