test/custom-admin-ui #3

Merged
orion merged 673 commits from test/custom-admin-ui into master 2026-06-05 17:20:58 +08:00
Showing only changes of commit c9c9a50b72 - Show all commits
+1 -1
View File
@@ -19,7 +19,7 @@ class IPRateLimit:
def check_ip(self, ip): def check_ip(self, ip):
# 检查ip是否被禁止 # 检查ip是否被禁止
if ip in self.ips: if ip in self.ips:
if self.ips[ip]['count'] >= self.count: if int(self.ips[ip]['count']) >= int(self.count):
if self.ips[ip]['time'] + timedelta(minutes=self.minutes) > datetime.now(): if self.ips[ip]['time'] + timedelta(minutes=self.minutes) > datetime.now():
return False return False
else: else: