From 0e35862b234e456711270e77d7e29a8feac606a2 Mon Sep 17 00:00:00 2001 From: naiba Date: Tue, 26 Apr 2022 09:26:52 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E5=A4=B1=E6=95=88=20GeoIP=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/agent/monitor/myip.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/agent/monitor/myip.go b/cmd/agent/monitor/myip.go index 692b218..055e36a 100644 --- a/cmd/agent/monitor/myip.go +++ b/cmd/agent/monitor/myip.go @@ -41,10 +41,10 @@ var ( "https://api.myip.la/en?json", "https://api.ip.sb/geoip", "https://ipapi.co/json", - "https://freegeoip.app/json/", "http://ip-api.com/json/", - // "https://extreme-ip-lookup.com/json/", - // "https://ip.seeip.org/geoip", + // "https://extreme-ip-lookup.com/json/", // 不精确 + // "https://ip.seeip.org/geoip", // 不精确 + // "https://freegeoip.app/json/", // 需要 Key } cachedIP, cachedCountry string httpClientV4 = utils.NewSingleStackHTTPClient(time.Second*20, time.Second*5, time.Second*10, false)