From 9f10df457b2989188a2fc0bb1df0a6ef86d42fb4 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Fri, 17 Mar 2023 14:49:42 +0800 Subject: [PATCH] chore: do not modify ALPN in utls --- component/tls/reality.go | 1 - component/tls/utls.go | 1 - 2 files changed, 2 deletions(-) diff --git a/component/tls/reality.go b/component/tls/reality.go index 85309fb5..3dadb7fd 100644 --- a/component/tls/reality.go +++ b/component/tls/reality.go @@ -44,7 +44,6 @@ func GetRealityConn(ctx context.Context, conn net.Conn, ClientFingerprint string } uConfig := &utls.Config{ ServerName: tlsConfig.ServerName, - NextProtos: tlsConfig.NextProtos, InsecureSkipVerify: true, SessionTicketsDisabled: true, VerifyPeerCertificate: verifier.VerifyPeerCertificate, diff --git a/component/tls/utls.go b/component/tls/utls.go index 857d598d..7ea2ad06 100644 --- a/component/tls/utls.go +++ b/component/tls/utls.go @@ -94,7 +94,6 @@ func copyConfig(c *tls.Config) *utls.Config { return &utls.Config{ RootCAs: c.RootCAs, ServerName: c.ServerName, - NextProtos: c.NextProtos, InsecureSkipVerify: c.InsecureSkipVerify, VerifyPeerCertificate: c.VerifyPeerCertificate, }