mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-16 11:48:42 -04:00
loosen up on dropped rpcs
This commit is contained in:
parent
3264b568d0
commit
21ecd64ff8
1 changed files with 3 additions and 1 deletions
|
@ -1470,7 +1470,9 @@ impl RPCProcessor {
|
|||
Ok(v) => v,
|
||||
Err(e) => {
|
||||
// Punish nodes that send direct undecodable crap
|
||||
address_filter.punish_node_id(sender_node_id);
|
||||
if matches!(e, RPCError::Protocol(_) | RPCError::InvalidFormat(_)) {
|
||||
address_filter.punish_node_id(sender_node_id);
|
||||
}
|
||||
return Ok(NetworkResult::invalid_message(e));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue