From 8a53846efd3d9c61c63630556f18938221f4acee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sat, 8 Oct 2022 20:31:01 +0800 Subject: [PATCH] Fix uTLS handshake --- common/tls/utls_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tls/utls_client.go b/common/tls/utls_client.go index 6df1a561..b93942a3 100644 --- a/common/tls/utls_client.go +++ b/common/tls/utls_client.go @@ -43,7 +43,7 @@ type utlsConnWrapper struct { } func (c *utlsConnWrapper) HandshakeContext(ctx context.Context) error { - return c.Conn.Handshake() + return c.UConn.Handshake() } func (c *utlsConnWrapper) ConnectionState() tls.ConnectionState {