fix: DoT-ALPN error

This commit is contained in:
Skyxim 2022-07-21 13:57:06 +08:00
parent fe3ad3724c
commit b0fd50453a

View File

@ -74,8 +74,6 @@ func transform(servers []NameServer, resolver *Resolver, preferH3 bool) []dnsCli
Client: &D.Client{
Net: s.Net,
TLSConfig: &tls.Config{
// alpn identifier, see https://tools.ietf.org/html/draft-hoffman-dprive-dns-tls-alpn-00#page-6
NextProtos: []string{"dns"},
ServerName: host,
},
UDPSize: 4096,