Fix: dns tcp-tls X509.HostnameError (#638)
This commit is contained in:
parent
84f627f302
commit
b1cf2ec837
@ -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,
|
||||
|
Reference in New Issue
Block a user