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