don't trip over truncated udp packets
and log such events, plus any other errors during decoding, nicely, including the connection on which this occured. Closes #123.
This commit is contained in:
1 parent
e8ec9e84ce
commit
4ddfc47448
4 files changed
+24
-4
No files matched your search
@@ -129,6 +129,10 @@ type NameCollisionError struct {
|
||||
Name PeerName
|
||||
}
|
||||
|
||||
type PacketDecodingError struct {
|
||||
Desc string
|
||||
}
|
||||
|
||||
type LocalAddress struct {
|
||||
ip net.IP
|
||||
network *net.IPNet
|
||||
|
||||
Reference in new issue
Block a user