Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2025-08-21 15:24:25 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2025-08-21 15:24:25 +0300
commit24a341146568446a0a787f7955581fa3531c40d5 (patch)
treedf6dfdfaf46b8acd3b89b7d9549eebe4b04ebdc4 /web
parent2198e7a28f51949cdf74cbd6087bf14a391cb7d7 (diff)
more list for public IP address
Diffstat (limited to 'web')
-rw-r--r--web/service/server.go17
1 files changed, 15 insertions, 2 deletions
diff --git a/web/service/server.go b/web/service/server.go
index 6b4e5d63..2dc83d77 100644
--- a/web/service/server.go
+++ b/web/service/server.go
@@ -235,8 +235,21 @@ func (s *ServerService) GetStatus(lastStatus *Status) *Status {
}
// IP fetching with caching
- showIp4ServiceLists := []string{"https://api.ipify.org", "https://4.ident.me"}
- showIp6ServiceLists := []string{"https://api6.ipify.org", "https://6.ident.me"}
+ showIp4ServiceLists := []string{
+ "https://api4.ipify.org",
+ "https://ipv4.icanhazip.com",
+ "https://v4.api.ipinfo.io/ip",
+ "https://ipv4.myexternalip.com/raw",
+ "https://4.ident.me",
+ "https://check-host.net/ip",
+ }
+ showIp6ServiceLists := []string{
+ "https://api6.ipify.org",
+ "https://ipv6.icanhazip.com",
+ "https://v6.api.ipinfo.io/ip",
+ "https://ipv6.myexternalip.com/raw",
+ "https://6.ident.me",
+ }
if s.cachedIPv4 == "" {
for _, ip4Service := range showIp4ServiceLists {