AGDNS-4210 set alpn set dot (PR9)

This commit is contained in:
Maksim Kazantsev
2026-07-09 13:10:50 +03:00
committed by GitHub
parent d020fcc62c
commit 5235b4c83f
+6
View File
@@ -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,