enable under attack when login_required is enabled on WPD

master
Aevann 2024-04-27 00:21:40 +03:00
parent 676c9391b1
commit bd05a854a1
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ def calc_users():
else:
ddos_threshold = 1000
if g.loggedin_counter + g.loggedout_counter > ddos_threshold:
if g.loggedin_counter + g.loggedout_counter > ddos_threshold or (SITE == 'watchpeopledie.tv' and SITE_SETTINGS['login_required']):
if not get_setting('under_attack'):
set_setting('under_attack', True)
set_security_level('under_attack')