mirror of
https://github.com/rancher/rke.git
synced 2025-09-15 06:30:27 +00:00
go mod and vendor changes
This commit is contained in:
committed by
Alena Prokharchyk
parent
9c1c0ea999
commit
091fa14a5d
12
vendor/github.com/Masterminds/sprig/v3/network.go
generated
vendored
Normal file
12
vendor/github.com/Masterminds/sprig/v3/network.go
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
package sprig
|
||||
|
||||
import (
|
||||
"math/rand"
|
||||
"net"
|
||||
)
|
||||
|
||||
func getHostByName(name string) string {
|
||||
addrs, _ := net.LookupHost(name)
|
||||
//TODO: add error handing when release v3 cames out
|
||||
return addrs[rand.Intn(len(addrs))]
|
||||
}
|
Reference in New Issue
Block a user