ccaa icon indicating copy to clipboard operation
ccaa copied to clipboard

我是这么判断 osip 的

Open crazypeace opened this issue 1 year ago • 0 comments

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

crazypeace avatar Oct 21 '23 00:10 crazypeace