mirror of
https://github.com/fumiama/terasu.git
synced 2026-06-21 04:40:25 +08:00
feat(dns): limit nextprotos to dns
This commit is contained in:
@@ -182,6 +182,7 @@ func (ds *DNSList) DialContext(ctx context.Context, dialer *net.Dialer, firstFra
|
|||||||
tlsConn = tls.Client(conn, &tls.Config{
|
tlsConn = tls.Client(conn, &tls.Config{
|
||||||
ServerName: host,
|
ServerName: host,
|
||||||
MinVersion: tls.VersionTLS12,
|
MinVersion: tls.VersionTLS12,
|
||||||
|
NextProtos: []string{"dns"},
|
||||||
})
|
})
|
||||||
if firstFragmentLen > 0 {
|
if firstFragmentLen > 0 {
|
||||||
err = terasu.Use(tlsConn).HandshakeContext(ctx, firstFragmentLen)
|
err = terasu.Use(tlsConn).HandshakeContext(ctx, firstFragmentLen)
|
||||||
|
|||||||
Reference in New Issue
Block a user