forked from rDrama/rDrama
1
0
Fork 0

reduce ddos_threshold for rdrama from 3k to 1k

master
Aevann 2023-07-28 18:23:48 +03:00
parent 6009304685
commit 3fc64da0e2
1 changed files with 6 additions and 1 deletions

View File

@ -57,7 +57,12 @@ def calc_users():
g.loggedin_counter = len(loggedin)
g.loggedout_counter = len(loggedout)
if g.loggedout_counter > 3000:
if SITE == 'watchpeopledie.tv':
ddos_threshold = 3000
else:
ddos_threshold = 1000
if g.loggedout_counter > ddos_threshold:
if not get_setting('ddos_detected'):
toggle_setting('ddos_detected')
set_security_level('under_attack')