From c1030c1dfeb0025e317159a0b96253419991e7dc Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Wed, 25 Feb 2026 00:31:31 -0800 Subject: [PATCH] remove debugging messages --- common/network/pia-vpn/scripts.nix | 9 +-------- common/network/pia-vpn/vpn-container.nix | 5 ----- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/common/network/pia-vpn/scripts.nix b/common/network/pia-vpn/scripts.nix index bd2382f..0180681 100644 --- a/common/network/pia-vpn/scripts.nix +++ b/common/network/pia-vpn/scripts.nix @@ -140,22 +140,15 @@ in local interfaceName=$2 echo "Applying WireGuard config to $interfaceName..." - echo "Running: wg setconf $interfaceName $wgFile" wg setconf "$interfaceName" "$wgFile" - echo "Running: ip -4 address add $MY_IP dev $interfaceName" ip -4 address add "$MY_IP" dev "$interfaceName" - echo "Running: ip link set mtu 1420 up dev $interfaceName" ip link set mtu 1420 up dev "$interfaceName" echo "WireGuard interface $interfaceName is up with IP $MY_IP" } reservePortForward() { local payload_and_signature - if [[ -z "''${PIA_TOKEN:-}" ]]; then - echo "ERROR: PIA_TOKEN is empty" >&2 - return 1 - fi - echo "Requesting port forward signature from $WG_HOSTNAME (token length: ''${#PIA_TOKEN})..." + echo "Requesting port forward signature from $WG_HOSTNAME..." payload_and_signature=$(curl -s -m 5 \ --connect-to "$WG_HOSTNAME::$WG_SERVER_IP:" \ --cacert "${caPath}" \ diff --git a/common/network/pia-vpn/vpn-container.nix b/common/network/pia-vpn/vpn-container.nix index d9491ba..9cf5858 100644 --- a/common/network/pia-vpn/vpn-container.nix +++ b/common/network/pia-vpn/vpn-container.nix @@ -132,16 +132,11 @@ in ${scripts.scriptCommon} # Clean up stale state from previous attempts - echo "Cleanup: resetting WG listen port..." wg set ${cfg.interfaceName} listen-port 0 2>/dev/null || true - echo "Cleanup: flushing addresses on ${cfg.interfaceName}..." ip -4 address flush dev ${cfg.interfaceName} 2>/dev/null || true - echo "Cleanup: removing default route..." ip route del default dev ${cfg.interfaceName} 2>/dev/null || true - echo "Cleanup: flushing iptables..." iptables -t nat -F 2>/dev/null || true iptables -F FORWARD 2>/dev/null || true - echo "Cleanup done" proxy="${proxy}"