1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-28 10:15:23 +00:00

Disable routing for platform initialized detour

This commit is contained in:
Shelikhoo 2021-02-28 19:57:57 +00:00
parent 6925870600
commit 9722488fd6
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -305,8 +305,7 @@ func (d *DefaultDispatcher) routedDispatch(ctx context.Context, link *transport.
common.Interrupt(link.Reader)
return
}
}
} else {
if d.router != nil {
if route, err := d.router.PickRoute(routing_session.AsRoutingContext(ctx)); err == nil {
tag := route.GetOutboundTag()
@ -320,6 +319,7 @@ func (d *DefaultDispatcher) routedDispatch(ctx context.Context, link *transport.
newError("default route for ", destination).WriteToLog(session.ExportIDToError(ctx))
}
}
}
if handler == nil {
handler = d.ohm.GetDefaultHandler()