🚸 Deserialize blacklist debug output

This commit is contained in:
Matt Love 2019-07-09 14:48:03 -07:00
parent f314e533ea
commit 89bf4281e7

View file

@ -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):