From fe4d4abc9cbfc64a2c16d272bc4d1ea14c042dba Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 9 Sep 2023 16:10:49 +0200 Subject: [PATCH] bundles/wireguard: fix max interface length --- bundles/wireguard/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/wireguard/metadata.py b/bundles/wireguard/metadata.py index e409e86..c9fd288 100644 --- a/bundles/wireguard/metadata.py +++ b/bundles/wireguard/metadata.py @@ -45,7 +45,7 @@ def peer_psks_and_iface_names(metadata): for peer_name in metadata.get('wireguard/peers', {}): peers[peer_name] = { - 'iface': sub('[^a-z0-9-_]+', '_', peer_name)[:20], + 'iface': sub('[^a-z0-9-_]+', '_', peer_name)[:12], } if node.name < peer_name: