Przeglądaj źródła

Make realityClientConnWrapper replaceable

世界 2 miesięcy temu
rodzic
commit
1468d83895
1 zmienionych plików z 8 dodań i 0 usunięć
  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 {
 func (c *realityClientConnWrapper) CloseWrite() error {
 	return c.Close()
 	return c.Close()
 }
 }
+
+func (c *realityClientConnWrapper) ReaderReplaceable() bool {
+	return true
+}
+
+func (c *realityClientConnWrapper) WriterReplaceable() bool {
+	return true
+}