From c825ce8fd8d7bf9718ddde301497395bbf56666d Mon Sep 17 00:00:00 2001 From: v2ray Date: Sat, 30 Jan 2016 11:45:33 +0100 Subject: [PATCH] Add warning when tags are not found. --- shell/point/point.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/point/point.go b/shell/point/point.go index d383c17b..7b697ca6 100644 --- a/shell/point/point.go +++ b/shell/point/point.go @@ -182,6 +182,8 @@ func (this *Point) DispatchToOutbound(context app.Context, packet v2net.Packet) if handler, found := this.odh[tag]; found { log.Info("Point: Taking detour [", tag, "] for [", dest, "]", tag, dest) dispatcher = handler + } else { + log.Warning("Point: Unable to find routing destination: ", tag) } } } @@ -215,6 +217,7 @@ func (this *Point) FilterPacketAndDispatch(packet v2net.Packet, link ray.Outboun func (this *Point) GetHandler(context app.Context, tag string) (proxy.InboundHandler, int) { handler, found := this.taggedIdh[tag] if !found { + log.Warning("Point: Unable to find an inbound handler with tag: ", tag) return nil, 0 } return handler.GetConnectionHandler()