mirror of
https://github.com/AdguardTeam/dnsproxy.git
synced 2026-10-12 02:01:26 +00:00
AGDNS-4210 set alpn set dot (PR9)
This commit is contained in:
@@ -72,6 +72,12 @@ func newDoT(addr *url.URL, opts *Options) (ups Upstream, err error) {
|
||||
InsecureSkipVerify: opts.InsecureSkipVerify,
|
||||
VerifyPeerCertificate: opts.VerifyServerCertificate,
|
||||
VerifyConnection: opts.VerifyConnection,
|
||||
// Despite it is not strictly required by both RFC 8932 and
|
||||
// RFC 9461, some DoT providers (e.g., NextDNS on non-standard port
|
||||
// 443) rely on ALPN to differentiate DoT from DoH traffic. This
|
||||
// was figured out in this issue:
|
||||
// https://github.com/AdguardTeam/dnsproxy/issues/510
|
||||
NextProtos: []string{"dot"},
|
||||
},
|
||||
connsMu: &sync.Mutex{},
|
||||
logger: opts.Logger,
|
||||
|
||||
Reference in New Issue
Block a user