diff --git a/protocol/socks/lazy.go b/protocol/socks/lazy.go index 1a1d61ca..5c5a023c 100644 --- a/protocol/socks/lazy.go +++ b/protocol/socks/lazy.go @@ -100,6 +100,13 @@ func (c *LazyConn) Upstream() any { return c.Conn } +func (c *LazyConn) CloseWrite() error { + if writeCloser, ok := c.Conn.(interface{ CloseWrite() error }); ok { + return writeCloser.CloseWrite() + } + return nil +} + type LazyAssociatePacketConn struct { AssociatePacketConn responseWritten bool