Jelajahi Sumber

Fix uTLS handshake

世界 3 tahun lalu
induk
melakukan
8a53846efd
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      common/tls/utls_client.go

+ 1 - 1
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 {