mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
simplify code
This commit is contained in:
parent
47e2d957d1
commit
8f1c4b7f71
@ -160,10 +160,8 @@ func (this *Point) DispatchToOutbound(context app.Context, packet v2net.Packet)
|
|||||||
dispatcher := this.och
|
dispatcher := this.och
|
||||||
|
|
||||||
if this.router != nil {
|
if this.router != nil {
|
||||||
tag, err := this.router.TakeDetour(dest)
|
if tag, err := this.router.TakeDetour(dest); err == nil {
|
||||||
if err == nil {
|
if handler, found := this.odh[tag]; found {
|
||||||
handler, found := this.odh[tag]
|
|
||||||
if found {
|
|
||||||
dispatcher = handler
|
dispatcher = handler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user