mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
97db14083a
* chore_: bump go-waku with filter loop fix * fix_: correct fleet node for staging fleet * fix_: use shards for lightclient init --------- Co-authored-by: Richard Ramos <info@richardramos.me>
13 lines
214 B
Go
13 lines
214 B
Go
package sprig
|
|
|
|
import (
|
|
"math/rand"
|
|
"net"
|
|
)
|
|
|
|
func getHostByName(name string) string {
|
|
addrs, _ := net.LookupHost(name)
|
|
//TODO: add error handing when release v3 comes out
|
|
return addrs[rand.Intn(len(addrs))]
|
|
}
|