Added Additional Debug output and error message for #854

pull/863/head
Shelikhoo 2018-02-12 11:55:39 +08:00
parent 34f51c6a0d
commit d065e722a1
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316
1 changed files with 5 additions and 0 deletions

View File

@ -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)
}