修复无法添加IP到本地防火墙的问题

This commit is contained in:
GoEdgeLab
2022-09-04 17:06:19 +08:00
parent 39ae7ed161
commit c7bf121090
2 changed files with 6 additions and 6 deletions

View File

@@ -170,7 +170,7 @@ func (this *Firewalld) DropSourceIP(ip string, timeoutSeconds int, async bool) e
}
// 避免短时间内重复添加
if this.checkLatestIP(ip) {
if async && this.checkLatestIP(ip) {
return nil
}