mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
use packet filter in point
This commit is contained in:
parent
b9c3f2cb75
commit
0921470341
@ -157,18 +157,19 @@ func (this *Point) DispatchToOutbound(context app.Context, packet v2net.Packet)
|
||||
direct := ray.NewRay()
|
||||
dest := packet.Destination()
|
||||
|
||||
dispatcher := this.och
|
||||
|
||||
if this.router != nil {
|
||||
tag, err := this.router.TakeDetour(dest)
|
||||
if err == nil {
|
||||
handler, found := this.odh[tag]
|
||||
if found {
|
||||
go handler.Dispatch(packet, direct)
|
||||
return direct
|
||||
dispatcher = handler
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
go this.och.Dispatch(packet, direct)
|
||||
go this.FilterPacketAndDispatch(packet, direct, dispatcher)
|
||||
return direct
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user