NET-958: remove usage of netmaker ip service (#2853)

* remove netmaker ip service

* remove debug log
This commit is contained in:
Abhishek K 2024-03-12 08:18:01 +07:00 committed by GitHub
parent 3b533952df
commit 203cbeef8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -441,7 +441,7 @@ func GetPublicIP() (string, error) {
endpoint := ""
var err error
iplist := []string{"https://ip.server.gravitl.com", "https://ifconfig.me", "https://api.ipify.org", "https://ipinfo.io/ip"}
iplist := []string{"https://ifconfig.me", "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