Fix: dns tcp-tls X509.HostnameError (#638)

This commit is contained in:
Texot 2020-04-17 11:29:59 +08:00 committed by GitHub
parent 84f627f302
commit b1cf2ec837
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,6 +133,7 @@ func transform(servers []NameServer, resolver *Resolver) []dnsClient {
ClientSessionCache: globalSessionCache,
// alpn identifier, see https://tools.ietf.org/html/draft-hoffman-dprive-dns-tls-alpn-00#page-6
NextProtos: []string{"dns"},
ServerName: host,
},
UDPSize: 4096,
Timeout: 5 * time.Second,