fix: add Upstream to refconn

This commit is contained in:
wwqgtxx
2023-01-16 13:26:30 +08:00
parent e88bddc24f
commit 49a2602329
2 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,10 @@ func (c *refConn) SetWriteDeadline(t time.Time) error {
return c.conn.SetWriteDeadline(t)
}
func (c *refConn) Upstream() any {
return c.conn
}
func NewRefConn(conn net.Conn, ref any) net.Conn {
return &refConn{conn: conn, ref: ref}
}