mirror of
https://github.com/vastsa/FileCodeBox.git
synced 2026-11-23 07:37:15 +08:00
fix:#204
This commit is contained in:
1 parent
0dca661508
commit
83598956a1
1 file changed
+1
-1
@@ -19,7 +19,7 @@ class IPRateLimit:
|
||||
def check_ip(self, ip):
|
||||
# 检查ip是否被禁止
|
||||
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():
|
||||
return False
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user