From 8a10aecf4c713f57b3df8226279f1f4a4de19a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Mon, 6 Oct 2025 12:20:40 +0800 Subject: [PATCH] feat(dns): limit nextprotos to dns --- dns/dns.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dns/dns.go b/dns/dns.go index dd76dd2..b8d177f 100644 --- a/dns/dns.go +++ b/dns/dns.go @@ -182,6 +182,7 @@ func (ds *DNSList) DialContext(ctx context.Context, dialer *net.Dialer, firstFra tlsConn = tls.Client(conn, &tls.Config{ ServerName: host, MinVersion: tls.VersionTLS12, + NextProtos: []string{"dns"}, }) if firstFragmentLen > 0 { err = terasu.Use(tlsConn).HandshakeContext(ctx, firstFragmentLen)