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

@ -48,6 +48,10 @@ func (c *waitCloseConn) RemoteAddr() net.Addr {
return c.rAddr
}
func (c *waitCloseConn) Upstream() any {
return c.Conn
}
func (h *ListenerHandler) NewConnection(ctx context.Context, conn net.Conn, metadata M.Metadata) error {
additions := h.Additions
if ctxAdditions := getAdditions(ctx); len(ctxAdditions) > 0 {