From 15acd9607688e06adeebe751516d6522cdcc5689 Mon Sep 17 00:00:00 2001 From: Parahub AI Date: Thu, 12 Feb 2026 11:43:55 +0000 Subject: [PATCH] fix(mullvad): Use --data-urlencode for Mullvad API key registration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Base64 WG pubkeys with + or / chars break plain -d POST. Hit this on VPS setup — "Invalid public key" from Mullvad API. Co-Authored-By: Claude Opus 4.6 --- files/usr/bin/parahub-mullvad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/usr/bin/parahub-mullvad b/files/usr/bin/parahub-mullvad index 7124fd4..3e4f70e 100755 --- a/files/usr/bin/parahub-mullvad +++ b/files/usr/bin/parahub-mullvad @@ -95,8 +95,8 @@ cmd_setup() { # --- Step 2: Register with Mullvad API --- echo "Registering key with Mullvad..." RESULT=$(curl -s --max-time 15 -X POST https://api.mullvad.net/wg/ \ - -d "account=$ACCOUNT" \ - -d "pubkey=$PUBKEY") + --data-urlencode "account=$ACCOUNT" \ + --data-urlencode "pubkey=$PUBKEY") if echo "$RESULT" | grep -q "^[0-9]"; then MULLVAD_IPV4=$(echo "$RESULT" | cut -d',' -f1)