Browse Source

Make realityClientConnWrapper replaceable

世界 3 months ago
parent
commit
1468d83895
1 changed files with 8 additions and 0 deletions
  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
+}