From 404501ce165f0723748e359181e92e0cb3fd9e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8F=A9=E8=BD=A9?= Date: Thu, 7 Nov 2024 14:02:12 +0800 Subject: [PATCH] Added API option to obtain local public IP --- pkg/utils/public_ip.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/utils/public_ip.go b/pkg/utils/public_ip.go index 63465ce..086a3af 100644 --- a/pkg/utils/public_ip.go +++ b/pkg/utils/public_ip.go @@ -25,6 +25,9 @@ import ( var ( APIs = [...]string{ + "https://ifconfig.me", + "https://icanhazip.com", + "https://ipinfo.io/json", "https://api.ipify.org", "https://api.my-ip.io/ip", "https://ip4.seeip.org",