forked from rDrama/rDrama
1
0
Fork 0

disable ddos_detected in localhost

master
Aevann 2023-05-03 23:22:38 +03:00
parent b69a4c10e4
commit 94e8ed4bc0
1 changed files with 9 additions and 8 deletions

View File

@ -77,6 +77,7 @@ def calc_users():
loggedin_counter = len(loggedin)
loggedout_counter = len(loggedout)
if not IS_LOCALHOST:
if loggedout_counter > (loggedin_counter * 3):
if not get_setting('ddos_detected'):
toggle_setting('ddos_detected')