From 734712455273bcd4e8f9eb1c86275b14371a8d62 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 27 Apr 2024 00:04:52 +0300 Subject: [PATCH] same as last commit --- files/routes/wrappers.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/files/routes/wrappers.py b/files/routes/wrappers.py index 723bc2f54..d1ededdec 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -55,20 +55,6 @@ def calc_users(): cache.set(LOGGED_OUT_CACHE_KEY, loggedout, timeout=86400) g.loggedin_counter = len(loggedin) g.loggedout_counter = len(loggedout) - - if SITE == 'watchpeopledie.tv': - ddos_threshold = 3500 - else: - ddos_threshold = 1000 - - if g.loggedin_counter + g.loggedout_counter > ddos_threshold: - if not get_setting('under_attack'): - set_setting('under_attack', True) - set_security_level('under_attack') - # else: - # if get_setting('under_attack'): - # set_setting('under_attack', False) - # set_security_level('high') return '' def get_logged_in_user():