From fffd908db280d95186b25783daae86787e8f6f12 Mon Sep 17 00:00:00 2001 From: yuhan6665 <1588741+yuhan6665@users.noreply.github.com> Date: Sun, 6 Nov 2022 21:50:19 -0500 Subject: [PATCH] Fix direct and splice flow --- proxy/vless/inbound/inbound.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/vless/inbound/inbound.go b/proxy/vless/inbound/inbound.go index 5ee491a7..46c080cc 100644 --- a/proxy/vless/inbound/inbound.go +++ b/proxy/vless/inbound/inbound.go @@ -519,9 +519,9 @@ func (h *Handler) Process(ctx context.Context, network net.Network, connection s if statConn != nil { counter = statConn.ReadCounter } + //TODO enable splice + ctx = session.ContextWithInbound(ctx, nil) if requestAddons.Flow == vless.XRV { - //TODO enable splice - ctx = session.ContextWithInbound(ctx, nil) err = encoding.XtlsRead(clientReader, serverWriter, timer, iConn.(*tls.Conn), rawConn, counter, ctx, account.ID.Bytes(), &numberOfPacketToFilter, &isTLS13, &isTLS12, &isTLS) } else { err = encoding.ReadV(clientReader, serverWriter, timer, iConn.(*xtls.Conn), rawConn, counter, ctx)