Fix: ALPN should on DoH instead of DoT (#2232)

This commit is contained in:
Skyxim
2022-07-25 12:41:22 +08:00
committed by GitHub
parent a794819869
commit 93400cf44d
2 changed files with 5 additions and 2 deletions

View File

@ -63,8 +63,6 @@ func transform(servers []NameServer, resolver *Resolver) []dnsClient {
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,