Fix: dns tcp-tls X509.HostnameError (#638)
This commit is contained in:
parent
84f627f302
commit
b1cf2ec837
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue