mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-18 18:36:11 -05:00
more logs in point
This commit is contained in:
parent
a6a14247af
commit
0bfe78dd6e
@ -162,6 +162,7 @@ func (this *Point) DispatchToOutbound(context app.Context, packet v2net.Packet)
|
|||||||
if this.router != nil {
|
if this.router != nil {
|
||||||
if tag, err := this.router.TakeDetour(dest); err == nil {
|
if tag, err := this.router.TakeDetour(dest); err == nil {
|
||||||
if handler, found := this.odh[tag]; found {
|
if handler, found := this.odh[tag]; found {
|
||||||
|
log.Info("Point: Taking detour [%s] for [%s]", tag, dest)
|
||||||
dispatcher = handler
|
dispatcher = handler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -181,6 +182,7 @@ func (this *Point) FilterPacketAndDispatch(packet v2net.Packet, link ray.Outboun
|
|||||||
chunk, moreChunks = <-link.OutboundInput()
|
chunk, moreChunks = <-link.OutboundInput()
|
||||||
}
|
}
|
||||||
if chunk == nil && !moreChunks {
|
if chunk == nil && !moreChunks {
|
||||||
|
log.Info("Point: No payload to dispatch, stopping dispatching now.")
|
||||||
close(link.OutboundOutput())
|
close(link.OutboundOutput())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user