changing iplookup to https only

This commit is contained in:
afeiszli
2021-11-17 09:04:55 -05:00
parent 5626c1111c
commit acdf403b5a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -405,7 +405,7 @@ func GetPublicIP() (string, error) {
endpoint := ""
var err error
iplist := []string{"http://ip.server.gravitl.com", "https://ifconfig.me", "http://api.ipify.org", "http://ipinfo.io/ip"}
iplist := []string{"https://ip.server.gravitl.com", "https://ifconfig.me", "https://api.ipify.org", "https://ipinfo.io/ip"}
for _, ipserver := range iplist {
resp, err := http.Get(ipserver)
if err != nil {