优化代码

This commit is contained in:
刘祥超
2022-01-11 16:02:27 +08:00
parent 8198ea8819
commit 7362722adb

View File

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