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:
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 {