From d3ecccd2455cc98f9c4d20ffc98a9f2bebe9508c Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Sat, 7 Oct 2023 15:25:35 +0300 Subject: [PATCH] =?UTF-8?q?[*]=20=D0=BF=D0=BE=20=D1=83=D0=BC=D0=BE=D0=BB?= =?UTF-8?q?=D1=87=D0=B0=D0=BD=D0=B8=D1=8E=20=D0=BE=D1=82=D0=BA=D0=BB=D1=8E?= =?UTF-8?q?=D1=87=D0=B5=D0=BD=20DDoS=20Guard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/Core/Helpers/DDosProtection.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/lib/Core/Helpers/DDosProtection.class.php b/core/lib/Core/Helpers/DDosProtection.class.php index 9a84c28..d53ff85 100644 --- a/core/lib/Core/Helpers/DDosProtection.class.php +++ b/core/lib/Core/Helpers/DDosProtection.class.php @@ -87,6 +87,9 @@ public function checkDDos(): void { + if (USE_DDOS_PROTECTION === false) { + return; + } $this->clearData(); $this->checkAndSetDefaultParams();