- | 封禁时间 |
+ 封禁时长 |
diff --git a/web/public/js/components/server/firewall-syn-flood-config-viewer.js b/web/public/js/components/server/firewall-syn-flood-config-viewer.js
index a7e64075..f2f98aab 100644
--- a/web/public/js/components/server/firewall-syn-flood-config-viewer.js
+++ b/web/public/js/components/server/firewall-syn-flood-config-viewer.js
@@ -16,7 +16,7 @@ Vue.component("firewall-syn-flood-config-viewer", {
},
template: `
- 已启用 / 空连接次数:{{config.minAttempts}}次/分钟 / 封禁时间:{{config.timeoutSeconds}}秒 / 忽略局域网访问
+ 已启用 / 空连接次数:{{config.minAttempts}}次/分钟 / 封禁时长:{{config.timeoutSeconds}}秒 / 忽略局域网访问
未启用
`
diff --git a/web/public/js/components/server/http-firewall-actions-box.js b/web/public/js/components/server/http-firewall-actions-box.js
index 9251495a..d614ce24 100644
--- a/web/public/js/components/server/http-firewall-actions-box.js
+++ b/web/public/js/components/server/http-firewall-actions-box.js
@@ -643,7 +643,7 @@ Vue.component("http-firewall-actions-box", {
- | 封锁时间 |
+ 封禁时长 |
@@ -652,14 +652,14 @@ Vue.component("http-firewall-actions-box", {
|
- | 封锁范围 |
+ 封禁范围 |
-
-
+
+
|
diff --git a/web/public/js/components/server/http-firewall-block-options-viewer.js b/web/public/js/components/server/http-firewall-block-options-viewer.js
index 6832068d..b128da6a 100644
--- a/web/public/js/components/server/http-firewall-block-options-viewer.js
+++ b/web/public/js/components/server/http-firewall-block-options-viewer.js
@@ -8,7 +8,7 @@ Vue.component("http-firewall-block-options-viewer", {
template: `
默认设置
- 状态码:{{options.statusCode}} / 提示内容:[{{options.body.length}}字符][无] / 超时时间:{{options.timeout}}秒
+ 状态码:{{options.statusCode}} / 提示内容:[{{options.body.length}}字符][无] / 超时时间:{{options.timeout}}秒 / 最大封禁时长:{{options.timeoutMax}}秒
`
diff --git a/web/public/js/components/server/http-firewall-block-options.js b/web/public/js/components/server/http-firewall-block-options.js
index 3ff7b0bb..7d3b0538 100644
--- a/web/public/js/components/server/http-firewall-block-options.js
+++ b/web/public/js/components/server/http-firewall-block-options.js
@@ -5,6 +5,7 @@ Vue.component("http-firewall-block-options", {
blockOptions: this.vBlockOptions,
statusCode: this.vBlockOptions.statusCode,
timeout: this.vBlockOptions.timeout,
+ timeoutMax: this.vBlockOptions.timeoutMax,
isEditing: false
}
},
@@ -24,6 +25,14 @@ Vue.component("http-firewall-block-options", {
} else {
this.blockOptions.timeout = timeout
}
+ },
+ timeoutMax: function (v) {
+ let timeoutMax = parseInt(v)
+ if (isNaN(timeoutMax)) {
+ this.blockOptions.timeoutMax = 0
+ } else {
+ this.blockOptions.timeoutMax = timeoutMax
+ }
}
},
methods: {
@@ -33,7 +42,9 @@ Vue.component("http-firewall-block-options", {
},
template: ` |