优化IP黑名单检测

This commit is contained in:
刘祥超
2023-04-05 09:25:33 +08:00
parent c53773c2db
commit c44583f249
7 changed files with 36 additions and 29 deletions

View File

@@ -125,7 +125,7 @@ func (this *IPList) RecordIP(ipType string,
}
// 使用本地防火墙
if useLocalFirewall && expiresAt > 0 {
if useLocalFirewall {
firewalls.DropTemporaryTo(ip, expiresAt)
}
}