enable under attack when login_required is enabled on WPD
parent
676c9391b1
commit
bd05a854a1
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue