Skip to content

Commit de1096a

Browse files
committed
update:增强iplimit
1 parent 3864335 commit de1096a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/depends.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def check_ip(self, ip):
3636
def add_ip(self, ip):
3737
ip_info = self.ips.get(ip, {'count': 0, 'time': datetime.now()})
3838
ip_info['count'] += 1
39+
ip_info['time'] = datetime.now()
3940
self.ips[ip] = ip_info
4041
return ip_info['count']
4142

0 commit comments

Comments
 (0)