mirror of https://github.com/v2ray/v2ray-core
Merge pull request #863 from v2ray/DetailedOriginalAddress]
Added Additional Debug output and error message for #854pull/865/head
commit
5133ca17d1
|
@ -150,6 +150,11 @@ func (h *Hub) start() {
|
|||
payload.source = net.UDPDestination(net.IPAddress(addr.IP), net.Port(addr.Port))
|
||||
if h.option.ReceiveOriginalDest && noob > 0 {
|
||||
payload.originalDest = RetrieveOriginalDest(oobBytes[:noob])
|
||||
if !payload.originalDest.IsValid() {
|
||||
newError("failed to read UDP Original Destination").WriteToLog()
|
||||
} else {
|
||||
newError("UDP Original Destination: ", payload.originalDest.String()).AtDebug().WriteToLog()
|
||||
}
|
||||
}
|
||||
h.queue.Enqueue(payload)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue