diff --git a/src/models/constants.go b/src/models/constants.go index 07eaddfe..183d0b28 100644 --- a/src/models/constants.go +++ b/src/models/constants.go @@ -69,9 +69,9 @@ func lookup(address string) (ipaddress string, err error) { }(dns) } - for s := range result { - if s != "" { - ipaddress = s + for i := 0; i < len(publicDns); i++ { + ipaddress = <-result + if ipaddress != "" { return } }