forked from rDrama/rDrama
parent
7b960d8809
commit
f6a862af07
|
@ -61,9 +61,14 @@ def calc_users():
|
||||||
else:
|
else:
|
||||||
ddos_threshold = 1000
|
ddos_threshold = 1000
|
||||||
|
|
||||||
if g.loggedout_counter > ddos_threshold and not get_setting('under_attack'):
|
if g.loggedout_counter > ddos_threshold:
|
||||||
toggle_setting('under_attack')
|
if not get_setting('under_attack'):
|
||||||
set_security_level('under_attack')
|
toggle_setting('under_attack')
|
||||||
|
set_security_level('under_attack')
|
||||||
|
else:
|
||||||
|
if get_setting('under_attack'):
|
||||||
|
toggle_setting('under_attack')
|
||||||
|
set_security_level('high')
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
def get_logged_in_user():
|
def get_logged_in_user():
|
||||||
|
|
Loading…
Reference in New Issue