From fa5c5706bea8b9d2802b8f9b8db6198ee338fd6e Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 25 Aug 2026 22:16:54 -0700 Subject: [PATCH] wireguard: Fix issues with newline in public key when adding client - This does not effect the existing flow much but is a problem when waiting for the public key to show up in list of peers. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- freedombox/modules/wireguard/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freedombox/modules/wireguard/utils.py b/freedombox/modules/wireguard/utils.py index 53b1a4624..09194a431 100644 --- a/freedombox/modules/wireguard/utils.py +++ b/freedombox/modules/wireguard/utils.py @@ -165,7 +165,7 @@ def delete_connections(): def _get_public_key_from_private_key(private_key): process = subprocess.run(['wg', 'pubkey'], check=True, capture_output=True, input=private_key.encode()) - return process.stdout.decode() + return process.stdout.decode().strip() def _generate_private_key():