From 567e20027a220160af45e4143f19bab8b09b38d7 Mon Sep 17 00:00:00 2001 From: Konstantin Passig PC <2002erdi@gmail.com> Date: Tue, 25 Aug 2026 18:06:12 +0200 Subject: [PATCH] vpn: dump transfer counters on 'vpn up' handshake timeout too --- yt_downloader/cli.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/yt_downloader/cli.py b/yt_downloader/cli.py index 1268523..4545bf3 100644 --- a/yt_downloader/cli.py +++ b/yt_downloader/cli.py @@ -94,9 +94,14 @@ def cmd_vpn(args: argparse.Namespace) -> int: vpn.up(cfg) print("tunnel up") if not vpn.wait_for_handshake(cfg): + logging.error("no handshake — tunnel state:\n%s", vpn._diagnose(cfg)) + vpn.down(cfg) logging.error( "tunnel is up but no WireGuard handshake was established — " - "downloads will be refused until the tunnel is active" + "if 'transfer' shows sent but 0 received, the endpoint " + "146.70.117.130:51820 is unreachable (try a different " + "Mullvad server); if 0 sent, the namespace has no route out. " + "Downloads will be refused until the tunnel is active." ) return 1 print("handshake established")