fix(quota): add UnwrapConn to quotaConn wrapper for handler type assertions

This commit is contained in:
ginuerzh
2026-06-20 14:45:46 +08:00
parent b23553d37a
commit c29517be4d
+6
View File
@@ -76,3 +76,9 @@ func (c *quotaConn) Context() context.Context {
} }
return nil return nil
} }
// UnwrapConn returns the underlying connection, allowing type assertions
// in handlers that iterate wrapper layers (e.g., SSH handler's unwrapConn).
func (c *quotaConn) UnwrapConn() net.Conn {
return c.Conn
}