From 1f82a63b69c3e15d885fe3c02642584530daf3a7 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 12 May 2026 14:12:09 +0200 Subject: [PATCH] Revert --- qbittorrent/rootfs/usr/local/sbin/vpn | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/qbittorrent/rootfs/usr/local/sbin/vpn b/qbittorrent/rootfs/usr/local/sbin/vpn index e27b2e2d2f..91a1fa0e02 100755 --- a/qbittorrent/rootfs/usr/local/sbin/vpn +++ b/qbittorrent/rootfs/usr/local/sbin/vpn @@ -279,16 +279,6 @@ _wireguard_up() { fi done - # Clean up any leftover state from a previous run (e.g., after an S6 service restart). - # Without this, `ip link add` and `ip rule add` fail with "RTNETLINK answers: File exists" - # when the svc-qbittorrent service is restarted while the WireGuard interface is still up. - if ip link show "${config["Interface"]}" > /dev/null 2>&1; then - bashio::log.info "WireGuard interface ${config["Interface"]} already exists. Cleaning up before re-establishing connection." - ip link set "${config["Interface"]}" down 2>/dev/null || true - ip link del "${config["Interface"]}" 2>/dev/null || true - fi - _routing_del 2>/dev/null || true - _cmd "ip link add ${config["Interface"]} type wireguard" || return 1 mapfile -d ',' -t local_ips < <(echo "${config["Address"]}" | tr -d ' ')