Add suport for DoH over HTTP/3

This commit is contained in:
Frank Denis 2022-07-21 18:50:10 +02:00
parent 91388b148c
commit 5977de660b
429 changed files with 87237 additions and 7 deletions

12
vendor/github.com/go-task/slim-sprig/network.go generated vendored Normal file
View 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 comes out
return addrs[rand.Intn(len(addrs))]
}