From 3fc64da0e2788ae548a634a7ab630238cd1a345f Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 28 Jul 2023 18:23:48 +0300 Subject: [PATCH] reduce ddos_threshold for rdrama from 3k to 1k --- files/routes/wrappers.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/files/routes/wrappers.py b/files/routes/wrappers.py index 966f6d0c1..51b8d29aa 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -57,7 +57,12 @@ def calc_users(): g.loggedin_counter = len(loggedin) g.loggedout_counter = len(loggedout) - if g.loggedout_counter > 3000: + if SITE == 'watchpeopledie.tv': + ddos_threshold = 3000 + else: + ddos_threshold = 1000 + + if g.loggedout_counter > ddos_threshold: if not get_setting('ddos_detected'): toggle_setting('ddos_detected') set_security_level('under_attack')