mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
loosen up on dropped rpcs
This commit is contained in:
parent
3264b568d0
commit
21ecd64ff8
@ -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…
Reference in New Issue
Block a user