Fix leak in reality server

This commit is contained in:
世界
2025-01-07 17:03:06 +08:00
parent 4c181a7d8f
commit 2668c7ca96
2 changed files with 40 additions and 1 deletions

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()
}