mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-05 22:30:28 +08:00
23 lines
592 B
JavaScript
23 lines
592 B
JavaScript
|
|
Vue.component("firewall-syn-flood-config-viewer", {
|
|||
|
|
props: ["v-syn-flood-config"],
|
|||
|
|
data: function () {
|
|||
|
|
let config = this.vSynFloodConfig
|
|||
|
|
if (config == null) {
|
|||
|
|
config = {
|
|||
|
|
isOn: false,
|
|||
|
|
minAttempts: 10,
|
|||
|
|
timeoutSeconds: 600,
|
|||
|
|
ignoreLocal: true
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
return {
|
|||
|
|
config: config
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
template: `<div>
|
|||
|
|
<span v-if="config.isOn">
|
|||
|
|
已启用 / <span>空连接次数:{{config.minAttempts}}次/分钟</span> / 封禁时间:{{config.timeoutSeconds}}秒 <span v-if="config.ignoreLocal">/ 忽略局域网访问</span>
|
|||
|
|
</span>
|
|||
|
|
<span v-else>未启用</span>
|
|||
|
|
</div>`
|
|||
|
|
})
|