瀏覽代碼

Make realityClientConnWrapper replaceable

世界 2 月之前
父節點
當前提交
1468d83895
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      common/tls/reality_client.go

+ 8 - 0
common/tls/reality_client.go

@@ -307,3 +307,11 @@ func (c *realityClientConnWrapper) Upstream() any {
 func (c *realityClientConnWrapper) CloseWrite() error {
 	return c.Close()
 }
+
+func (c *realityClientConnWrapper) ReaderReplaceable() bool {
+	return true
+}
+
+func (c *realityClientConnWrapper) WriterReplaceable() bool {
+	return true
+}