浏览代码

Make utlsConnWrapper replaceable

wwqgtxx 2 月之前
父节点
当前提交
83f02d0bfb
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      common/tls/utls_client.go

+ 8 - 0
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