1
0
mirror of https://github.com/fumiama/terasu.git synced 2026-06-05 01:00:23 +08:00

feat(dns): limit nextprotos to dns

This commit is contained in:
源文雨
2025-10-06 12:20:40 +08:00
parent 2e34cdfed3
commit 8a10aecf4c

View File

@@ -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)