Don't crash
This commit is contained in:
parent
b9e773ec83
commit
f4589a1031
@ -121,7 +121,8 @@ func (r *connReader) handleDataPacket(
|
||||
|
||||
if h.DestIP == r.localIP {
|
||||
if _, err := r.iface.Write(data); err != nil {
|
||||
log.Fatalf("Failed to write to interface: %v", err)
|
||||
// Could be invalid data from peer. Don't crash.
|
||||
log.Printf("Failed to write to interface: %v", err)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user