mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-25 07:20:44 +00:00
Add warning when tags are not found.
This commit is contained in:
1 parent
be10ca7e09
commit
c825ce8fd8
1 file changed
+3
@@ -182,6 +182,8 @@ func (this *Point) DispatchToOutbound(context app.Context, packet v2net.Packet)
|
|||||||
if handler, found := this.odh[tag]; found {
|
if handler, found := this.odh[tag]; found {
|
||||||
log.Info("Point: Taking detour [", tag, "] for [", dest, "]", tag, dest)
|
log.Info("Point: Taking detour [", tag, "] for [", dest, "]", tag, dest)
|
||||||
dispatcher = handler
|
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) {
|
func (this *Point) GetHandler(context app.Context, tag string) (proxy.InboundHandler, int) {
|
||||||
handler, found := this.taggedIdh[tag]
|
handler, found := this.taggedIdh[tag]
|
||||||
if !found {
|
if !found {
|
||||||
|
log.Warning("Point: Unable to find an inbound handler with tag: ", tag)
|
||||||
return nil, 0
|
return nil, 0
|
||||||
}
|
}
|
||||||
return handler.GetConnectionHandler()
|
return handler.GetConnectionHandler()
|
||||||
|
|||||||
Reference in new issue
Block a user