From e552caa38f57e1c9b976de07da2483ce11f28b95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 9 Nov 2024 18:00:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9ip=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/tools/tools.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/tools/tools.go b/pkg/tools/tools.go index b8cd9cb7..90ec45e5 100644 --- a/pkg/tools/tools.go +++ b/pkg/tools/tools.go @@ -97,7 +97,7 @@ func IsChina() bool { client.SetTimeout(3 * time.Second) client.SetRetryCount(3) - resp, err := client.R().Get("https://www.cloudflare-cn.com/cdn-cgi/trace") + resp, err := client.R().Get("https://www.qualcomm.cn/cdn-cgi/trace") if err != nil || !resp.IsSuccess() { return false } @@ -123,7 +123,7 @@ func GetPublicIPv4() (string, error) { }, }) - resp, err := client.R().Get("https://www.cloudflare-cn.com/cdn-cgi/trace") + resp, err := client.R().Get("https://www.qualcomm.cn/cdn-cgi/trace") if err != nil || !resp.IsSuccess() { return "", errors.New("failed to get public ipv4 address") } @@ -145,7 +145,7 @@ func GetPublicIPv6() (string, error) { }, }) - resp, err := client.R().Get("https://www.cloudflare-cn.com/cdn-cgi/trace") + resp, err := client.R().Get("https://www.qualcomm.cn/cdn-cgi/trace") if err != nil || !resp.IsSuccess() { return "", errors.New("failed to get public ipv6 address") }