mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-19 23:03:08 +00:00
test case for on demand detour
This commit is contained in:
1 parent
e346f179d2
commit
d8c6102638
9 files changed
+32
-15
No files matched your search
@@ -205,6 +205,10 @@ func (this *Point) FilterPacketAndDispatch(packet v2net.Packet, link ray.Outboun
|
||||
dispatcher.Dispatch(packet, link)
|
||||
}
|
||||
|
||||
func (this *Point) GetHandler(tag string) (proxy.InboundConnectionHandler, int) {
|
||||
return nil, 0
|
||||
func (this *Point) GetHandler(context app.Context, tag string) (proxy.InboundConnectionHandler, int) {
|
||||
handler, found := this.taggedIdh[tag]
|
||||
if !found {
|
||||
return nil, 0
|
||||
}
|
||||
return handler.GetConnectionHandler()
|
||||
}
|
||||
Reference in new issue
Block a user