Punish parse errors (else you can get DoS)

This commit is contained in:
Mike Dilger 2024-07-14 10:00:49 +12:00
parent 2cb6148dce
commit 5711ca3503

View File

@ -269,7 +269,7 @@ impl ChorusError {
ChorusError::NoSuchSubscription => 0.05,
ChorusError::PocketDb(_) => 0.0,
ChorusError::PocketDbHeed(_) => 0.0,
ChorusError::PocketType(_) => 0.0,
ChorusError::PocketType(_) => 0.25,
ChorusError::ProtectedEvent => 0.35,
ChorusError::RealIpHeaderMissing => 0.0,
ChorusError::Restricted => 0.1,