Fix leak in reality server

This commit is contained in:
世界
2025-01-07 17:27:10 +08:00
parent e42ff22c2e
commit 50f5006c43
2 changed files with 40 additions and 1 deletions
+6
View File
@@ -195,3 +195,9 @@ func (c *realityConnWrapper) ConnectionState() ConnectionState {
func (c *realityConnWrapper) Upstream() any {
return c.Conn
}
// Due to low implementation quality, the reality server intercepted half close and caused memory leaks.
// We fixed it by calling Close() directly.
func (c *realityConnWrapper) CloseWrite() error {
return c.Close()
}