Explorar el Código

Merge branch 'release-v0.30.0' of https://github.com/gravitl/netmaker into NET-1964

abhishek9686 hace 6 meses
padre
commit
e4b1a84ef2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      servercfg/serverconf.go

+ 1 - 1
servercfg/serverconf.go

@@ -509,7 +509,7 @@ func GetPublicIP() (string, error) {
 	endpoint := ""
 	var err error
 
-	iplist := []string{"https://ifconfig.me", "https://api.ipify.org", "https://ipinfo.io/ip"}
+	iplist := []string{"https://ifconfig.me/ip", "https://api.ipify.org", "https://ipinfo.io/ip"}
 	publicIpService := os.Getenv("PUBLIC_IP_SERVICE")
 	if publicIpService != "" {
 		// prepend the user-specified service so it's checked first