test case for on demand detour

This commit is contained in:
Darien Raymond committed 2016-01-21 16:22:56 +00:00
1 parent e346f179d2
commit d8c6102638
9 files changed
+32 -15

No files matched your search

+6 -2
View File
@@ -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()
}