From e5e9e58d66a58b33895154c6aa15357b4c8ef7d7 Mon Sep 17 00:00:00 2001 From: yuhan6665 <1588741+yuhan6665@users.noreply.github.com> Date: Sat, 26 Nov 2022 20:17:23 -0500 Subject: [PATCH] Fix direct flow on Windows --- proxy/vless/outbound/outbound.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxy/vless/outbound/outbound.go b/proxy/vless/outbound/outbound.go index bf8790d3..1075f588 100644 --- a/proxy/vless/outbound/outbound.go +++ b/proxy/vless/outbound/outbound.go @@ -279,6 +279,9 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte if requestAddons.Flow == vless.XRV { err = encoding.XtlsRead(serverReader, clientWriter, timer, netConn, rawConn, counter, ctx, account.ID.Bytes(), &numberOfPacketToFilter, &enableXtls, &isTLS12orAbove, &isTLS) } else { + if requestAddons.Flow != vless.XRS { + ctx = session.ContextWithInbound(ctx, nil) + } err = encoding.ReadV(serverReader, clientWriter, timer, iConn.(*xtls.Conn), rawConn, counter, ctx) } } else {