mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-06-03 03:31:55 +00:00
DispatchLink(): Fix user stats
Fixes https://github.com/XTLS/Xray-core/pull/5076#issuecomment-3243431593
This commit is contained in:
@@ -563,7 +563,7 @@ func (h *Handler) Process(ctx context.Context, network net.Network, connection s
|
||||
bufferWriter.SetFlushNext()
|
||||
|
||||
if err := dispatcher.DispatchLink(ctx, request.Destination(), &transport.Link{
|
||||
Reader: &buf.TimeoutWrapperReader{Reader: clientReader},
|
||||
Reader: clientReader,
|
||||
Writer: clientWriter},
|
||||
); err != nil {
|
||||
return errors.New("failed to dispatch request").Base(err)
|
||||
|
||||
Reference in New Issue
Block a user