fix(quota): add UnwrapConn to quotaConn wrapper for handler type assertions
This commit is contained in:
1 parent
b23553d37a
commit
c29517be4d
1 file changed
+6
@@ -76,3 +76,9 @@ func (c *quotaConn) Context() context.Context {
|
||||
}
|
||||
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
|
||||
}
|
||||
Reference in new issue
Block a user