From 22032fd28fb2280420ff567f2a47e5dbab632c47 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 5 Feb 2026 16:02:27 +0100 Subject: [PATCH] Install default route only once --- qbittorrent/rootfs/usr/local/sbin/vpn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qbittorrent/rootfs/usr/local/sbin/vpn b/qbittorrent/rootfs/usr/local/sbin/vpn index 2d2bd6290..d6275b104 100755 --- a/qbittorrent/rootfs/usr/local/sbin/vpn +++ b/qbittorrent/rootfs/usr/local/sbin/vpn @@ -152,9 +152,11 @@ _routing_add() { done for ipv6 in ${local_ipv6}; do config["IPv6Enabled"]="true" - _cmd "ip -6 route add default dev ${config["Interface"]} table ${config["Table"]}" || return 1 _cmd "ip -6 rule add priority 1 from ${ipv6} table ${config["Table"]}" || return 1 done + if [ "${config["IPv6Enabled"]}" = "true" ]; then + _cmd "ip -6 route add default dev ${config["Interface"]} table ${config["Table"]}" || true + fi # get valid DNS servers _parse_dns