sometimes i dislike how strongly typed python is

This commit is contained in:
Ezri Brimhall 2026-02-04 10:25:53 -07:00
parent b49d76f8cb
commit 09354e9ae6
Signed by: ezri
GPG Key ID: 058A78E5680C6F24

View File

@ -213,7 +213,7 @@ class Config:
self.write_exclusion(
dir,
ipaddress.IPv4Network(
f"{'.'.join(route.get('Destination', [255, 255, 255, 255]))}/{route.get('DestinationPrefixLength', 32)}"
f"{'.'.join(str(octet) for octet in route.get('Destination', [255, 255, 255, 255]))}/{route.get('DestinationPrefixLength', 32)}"
),
)