forked from mirrors/thatmattlove-hyperglass
🚸 Deserialize blacklist debug output
This commit is contained in:
parent
f314e533ea
commit
89bf4281e7
1 changed files with 3 additions and 1 deletions
|
|
@ -113,7 +113,9 @@ def ip_blacklist(target):
|
||||||
for net in user_blacklist
|
for net in user_blacklist
|
||||||
if ipaddress.ip_network(net).version == target_ver
|
if ipaddress.ip_network(net).version == target_ver
|
||||||
]
|
]
|
||||||
logger.debug(f"IPv{target_ver} Blacklist Networks: {networks}")
|
logger.debug(
|
||||||
|
f"IPv{target_ver} Blacklist Networks: {[str(n) for n in networks]}"
|
||||||
|
)
|
||||||
while not membership:
|
while not membership:
|
||||||
for net in networks:
|
for net in networks:
|
||||||
if ipaddress.ip_network(target).subnet_of(net):
|
if ipaddress.ip_network(target).subnet_of(net):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue