From 83f02d0bfb16c932b7984dee870e1dcca0a582ff Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Tue, 19 Aug 2025 23:25:03 +0800 Subject: [PATCH] Make utlsConnWrapper replaceable --- common/tls/utls_client.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/tls/utls_client.go b/common/tls/utls_client.go index f897e65c..fceb15b8 100644 --- a/common/tls/utls_client.go +++ b/common/tls/utls_client.go @@ -106,6 +106,14 @@ func (c *utlsConnWrapper) Upstream() any { return c.UConn } +func (c *utlsConnWrapper) ReaderReplaceable() bool { + return true +} + +func (c *utlsConnWrapper) WriterReplaceable() bool { + return true +} + type utlsALPNWrapper struct { utlsConnWrapper nextProtocols []string