Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
badafans committed Dec 26, 2021
1 parent 699848f commit 5e485b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion batch/CF优选IP-ANSI.bat
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ goto resolve

:resolve
echo 指向解析获取CF节点IP
echo 如果长时间无法CF节点IP,重新运行程序并选择清空缓存
echo 如果长时间无法获取CF节点IP,重新运行程序并选择清空缓存
for %%i in ("!LF!") do (
for /f "delims=" %%a in ('curl --!ips! --resolve speed.cloudflare.com:443:!resolveip! --retry 3 -s https://speed.cloudflare.com/meta') do (
set str=%%a
Expand Down
2 changes: 1 addition & 1 deletion batch/CF优选IP-UTF-8.bat
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ goto resolve

:resolve
echo 指向解析获取CF节点IP
echo 如果长时间无法CF节点IP,重新运行程序并选择清空缓存
echo 如果长时间无法获取CF节点IP,重新运行程序并选择清空缓存
for %%i in ("!LF!") do (
for /f "delims=" %%a in ('curl --!ips! --resolve speed.cloudflare.com:443:!resolveip! --retry 3 -s https://speed.cloudflare.com/meta') do (
set str=%%a
Expand Down
2 changes: 1 addition & 1 deletion shell/cf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ do
grep Connected data.txt | awk -F'(' '{print $2}' | awk -F')' '{print $1}'>$ips.txt
fi
echo 指向解析获取CF节点IP
echo 如果长时间无法CF节点IP,重新运行程序并选择清空缓存
echo 如果长时间无法获取CF节点IP,重新运行程序并选择清空缓存
resolveip=$(cat $ips.txt)
curl --$ips --resolve speed.cloudflare.com:443:$resolveip --retry 3 -s https://speed.cloudflare.com/meta | sed -e 's/{//g' -e 's/}//g' -e 's/"//g' -e 's/,/\n/g'>meta.txt
asn=$(grep asn: meta.txt | awk -F: '{print $2}')
Expand Down

0 comments on commit 5e485b0

Please sign in to comment.