mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
优化代码
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user