diff options
author | MadMaurice <madmaurice@zom.bi> | 2018-09-08 02:58:23 +0300 |
---|---|---|
committer | MadMaurice <madmaurice@zom.bi> | 2018-09-08 02:58:23 +0300 |
commit | 73a0b2f88812e99ac50a78b22dad53336177e78e (patch) | |
tree | 877c06eb67a8e7a6af2620f5e926a163d304b35e /scripts | |
parent | f7221c14efa14c4c73b64782673d309e97f87e61 (diff) |
Make Rate limiter configurable.
This adds messagelimit and messageburst to the configuration file murmur.ini as
well as the ability to set these live.
Though adjusting these live is entirely possible, they only take effect for new connections.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/murmur.ini | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/murmur.ini b/scripts/murmur.ini index d1208a1ae..dd4705528 100644 --- a/scripts/murmur.ini +++ b/scripts/murmur.ini @@ -136,6 +136,18 @@ bandwidth=72000 ; Maximum number of concurrent clients allowed. users=100 +; Per-user rate limiting +; +; These two settings allow to configure the per-user rate limiter for some +; command messages sent from the client to the server. The messageburst setting +; specifies an amount of messages which are allowed in short bursts. The +; messagelimit setting specifies the number of messages per second allowed over +; a longer period. If a user hits the rate limit, his packages are then ignored +; for some time. Both of these settings have a minimum of 1 as setting either to +; 0 could render the server unusable. +messageburst=5 +messagelimit=1 + ; Respond to UDP ping packets. ; ; Setting to true exposes the current user count, the maximum user count, and |