From 7fde9736a42ed8a3c51aec7f82c294c3955eff2a Mon Sep 17 00:00:00 2001 From: naiba Date: Fri, 3 Feb 2023 15:33:00 +0800 Subject: [PATCH] fix myip api --- cmd/agent/monitor/myip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/agent/monitor/myip.go b/cmd/agent/monitor/myip.go index 6df2ae5..cd9b0c7 100644 --- a/cmd/agent/monitor/myip.go +++ b/cmd/agent/monitor/myip.go @@ -38,7 +38,7 @@ func (ip *geoIP) Unmarshal(body []byte) error { var ( geoIPApiList = []string{ - "https://api.myip.la/en?json", + "http://api.myip.la/en?json", "https://api.ip.sb/geoip", "https://ipapi.co/json", "http://ip-api.com/json/",