mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-11 07:46:34 +00:00

- Updates fips-go to be the latest on cfsetup.yaml - Updates sumtype's x/tools to be latest to avoid Internal: nil pkg errors with fips.
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))]
|
|
}
|