mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-07 21:54:54 +08:00
fix ifconig ip endpoint (#3343)
This commit is contained in:
commit
68345bb1a0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue