mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-06-21 00:56:35 +00:00

## Summary Update several moving parts of cloudflared build system: * use goboring 1.24.2 in cfsetup * update linter and fix lint issues * update packages namely **quic-go and net** * install script for macos * update docker files to use go 1.24.1 * remove usage of cloudflare-go * pin golang linter Closes TUN-9016
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))]
|
|
}
|