fix ifconig ip endpoint (#3343)

This commit is contained in:
Abhishek K 2025-02-24 19:25:14 +03:00 committed by GitHub
commit 68345bb1a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -513,7 +513,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