Fixed rnstatus including not-yet-blocked IPs in blocked IP list output

This commit is contained in:
Mark Qvist 2026-08-23 11:30:43 +02:00
parent 1bad7f5807
commit bfab2964b6
No known key found for this signature in database

View file

@ -564,7 +564,7 @@ class BackboneInterface(Interface):
@property
def blocked_ip_list(self):
if not self.block_fast_flapping: return []
else: return list(self.fast_flapping.keys())
else: return [ip for ip in self.fast_flapping if self.fast_flapping[ip][2] > self.fast_flap_grace]
@property
def blocked_ip_count(self):