nftables封禁IP使用异步操作

This commit is contained in:
刘祥超
2022-08-04 11:01:16 +08:00
parent 30c3e143b8
commit db353fe025
9 changed files with 68 additions and 14 deletions

View File

@@ -112,7 +112,7 @@ func (this *IPList) RecordIP(ipType string,
if seconds > 3600 {
seconds = 3600
}
_ = firewalls.Firewall().DropSourceIP(ip, int(seconds))
_ = firewalls.Firewall().DropSourceIP(ip, int(seconds), true)
}
}
}