From 4098cd60eae3975fc89bc7c26e9f62aac1ad70a9 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sat, 9 Oct 2021 17:28:29 +0200 Subject: [PATCH] wip --- 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 13b498e..69b0875 100644 --- a/bundles/wireguard/metadata.py +++ b/bundles/wireguard/metadata.py @@ -116,7 +116,7 @@ def peer_keys(metadata): for peer_name in metadata.get('wireguard/peers', {}): peer_node = repo.get_node(peer_name) - first, second = sorted([node.name, peer_name]) + first, second = sorted([node.metadata.get('id'), peer_node.metadata.get('id')]) psk = repo.vault.random_bytes_as_base64_for(f'{first} wireguard {second}') pubkey = repo.libs.keys.get_pubkey_from_privkey(