mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-09-28 06:46:14 -04:00
close outbound ray on error
This commit is contained in:
parent
522ac2a2e9
commit
0f27e0b4d3
@ -78,6 +78,7 @@ func (h *Handler) Dispatch(ctx context.Context, outboundRay ray.OutboundRay) {
|
||||
err := h.mux.Dispatch(ctx, outboundRay)
|
||||
if err != nil {
|
||||
log.Trace(newError("failed to process outbound traffic").Base(err))
|
||||
outboundRay.OutboundOutput().CloseError()
|
||||
}
|
||||
} else {
|
||||
err := h.proxy.Process(ctx, outboundRay, h)
|
||||
|
Loading…
Reference in New Issue
Block a user