We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb922c3 commit eb2fd83Copy full SHA for eb2fd83
hermes/src/api/ws.rs
@@ -294,7 +294,8 @@ impl Subscriber {
294
if !self
295
.ws_state
296
.bytes_limit_whitelist
297
- .contains(&self.ip_addr.into())
+ .iter()
298
+ .any(|ip_net| ip_net.contains(&self.ip_addr))
299
&& self.ws_state.rate_limiter.check_key_n(
300
&self.ip_addr,
301
NonZeroU32::new(message.len().try_into()?).ok_or(anyhow!("Empty message"))?,
0 commit comments