优化代码

This commit is contained in:
GoEdgeLab
2022-01-11 16:02:27 +08:00
parent 12bcd76453
commit 2bfdf8b295

View File

@@ -28,8 +28,8 @@ Vue.component("firewall-syn-flood-config-box", {
if (isNaN(count)) {
count = 10
}
if (count < 3) {
count = 3
if (count < 5) {
count = 5
}
this.config.minAttempts = count
},
@@ -69,7 +69,7 @@ Vue.component("firewall-syn-flood-config-box", {
<input type="text" v-model="minAttempts" style="width: 5em" maxlength="4"/>
<span class="ui label">次/分钟</span>
</div>
<p class="comment">超过此数字的"空连接"将被视为SYN Flood攻击为了防止误判此数值默认不小于3。</p>
<p class="comment">超过此数字的"空连接"将被视为SYN Flood攻击为了防止误判此数值默认不小于5。</p>
</td>
</tr>
<tr>