Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
fix: 更换 cdn-cgi/trace,修复纯海外 ipv6 判断不准的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
i-abc committed Mar 24, 2024
1 parent 2d3ffa0 commit 00dee53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gb5-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ _check_swap() {
##### 判断IP所在地,选择相应下载源 #####
_check_ip() {
local loc
loc="$(curl -s -L 'https://www.visa.cn/cdn-cgi/trace' | awk -F '=' '/loc/{print $2}')"
loc="$(curl -s -L 'https://www.qualcomm.cn/cdn-cgi/trace' | awk -F '=' '/loc/{print $2}')"
echo "loc: ${loc}"
if [ -z "$loc" ]; then
echo "使用镜像源"
Expand Down

0 comments on commit 00dee53

Please sign in to comment.