remove rdrama exception

master
Aevann 2024-02-18 22:56:02 +02:00
parent 563f89ec46
commit 24f6154213
1 changed files with 8 additions and 9 deletions

View File

@ -61,15 +61,14 @@ def calc_users():
else: else:
ddos_threshold = 1000 ddos_threshold = 1000
if SITE != 'rdrama.net': if g.loggedin_counter + g.loggedout_counter > ddos_threshold:
if g.loggedin_counter + g.loggedout_counter > ddos_threshold: if not get_setting('under_attack'):
if not get_setting('under_attack'): set_setting('under_attack', True)
set_setting('under_attack', True) set_security_level('under_attack')
set_security_level('under_attack') else:
else: if get_setting('under_attack'):
if get_setting('under_attack'): set_setting('under_attack', False)
set_setting('under_attack', False) set_security_level('high')
set_security_level('high')
return '' return ''
def get_logged_in_user(): def get_logged_in_user():