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)