From fea1a2199cdb5f55e8b327f2288ee5d4cdc6e0ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Thu, 25 Aug 2022 09:26:06 +0800 Subject: [PATCH] =?UTF-8?q?WAF=20cc2=E9=98=88=E5=80=BC=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=A4=AA=E4=BD=8E=E6=97=B6=E6=8F=90=E7=A4=BA=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/public/js/components/server/http-firewall-rules.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/public/js/components/server/http-firewall-rules.js b/web/public/js/components/server/http-firewall-rules.js index de56d228..a1d39531 100644 --- a/web/public/js/components/server/http-firewall-rules.js +++ b/web/public/js/components/server/http-firewall-rules.js @@ -183,6 +183,13 @@ Vue.component("http-firewall-checkpoint-cc", { value: ignoreCommonFiles } ] + }, + thresholdTooLow: function () { + let threshold = parseInt(this.threshold.toString()) + if (isNaN(threshold) || threshold <= 0) { + threshold = 1000 + } + return threshold > 0 && threshold < 5 } }, template: `
@@ -208,6 +215,7 @@ Vue.component("http-firewall-checkpoint-cc", { 阈值 * +

对于网站类应用来说,当前阈值设置的太低,有可能会影响用户正常访问。