From 1121517755233202ba1c0741f9e007a642669019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 11 Jul 2023 20:58:12 +0800 Subject: [PATCH] Fix hysteria inbound context --- inbound/hysteria.go | 1 + 1 file changed, 1 insertion(+) diff --git a/inbound/hysteria.go b/inbound/hysteria.go index 9e383c2f..9830276c 100644 --- a/inbound/hysteria.go +++ b/inbound/hysteria.go @@ -283,6 +283,7 @@ func (h *Hysteria) acceptStream(ctx context.Context, conn quic.Connection, strea metadata.Source = M.SocksaddrFromNet(conn.RemoteAddr()).Unwrap() metadata.OriginDestination = M.SocksaddrFromNet(conn.LocalAddr()).Unwrap() metadata.Destination = M.ParseSocksaddrHostPort(request.Host, request.Port).Unwrap() + metadata.User, _ = auth.UserFromContext[string](ctx) if !request.UDP { err = hysteria.WriteServerResponse(stream, hysteria.ServerResponse{