bundles/wireguard: fix max interface length

This commit is contained in:
Franzi 2023-09-09 16:10:49 +02:00
parent a2ceb8cc3a
commit fe4d4abc9c
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -45,7 +45,7 @@ def peer_psks_and_iface_names(metadata):
for peer_name in metadata.get('wireguard/peers', {}): for peer_name in metadata.get('wireguard/peers', {}):
peers[peer_name] = { peers[peer_name] = {
'iface': sub('[^a-z0-9-_]+', '_', peer_name)[:20], 'iface': sub('[^a-z0-9-_]+', '_', peer_name)[:12],
} }
if node.name < peer_name: if node.name < peer_name: