From 40576b2b9ca29b26f0600d7c3d96c011c9c590ca Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 09:31:21 +0000 Subject: [PATCH 2/4] fix: randomly select OpenVPN config when multiple files found Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com> Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/a34bc8b0-0350-43ea-8402-d16b6a4c5b36 --- qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh index d9688c47d..b22b7ec47 100755 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -66,8 +66,8 @@ if [[ -z "${openvpn_config}" ]]; then openvpn_config='/config/openvpn/config.conf' bashio::log.info 'Using default OpenVPN configuration config.conf.' else - bashio::log.fatal "Multiple OpenVPN configuration files detected. Please set the 'openvpn_config' option." - bashio::addon.stop + openvpn_config="${configs[RANDOM % ${#configs[@]}]}" + bashio::log.info "Multiple OpenVPN configurations found. Randomly selected: ${openvpn_config##*/}." fi elif bashio::fs.file_exists "/config/openvpn/${openvpn_config}"; then openvpn_config="/config/openvpn/${openvpn_config}" From 464a4cbd5df3bc87ac5489334e1bf7184daacae1 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 26 Mar 2026 10:32:37 +0100 Subject: [PATCH 3/4] Update config.yaml --- qbittorrent/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbittorrent/config.yaml b/qbittorrent/config.yaml index a0c2daf6e..21981cc38 100644 --- a/qbittorrent/config.yaml +++ b/qbittorrent/config.yaml @@ -143,4 +143,4 @@ schema: slug: qbittorrent udev: true url: https://github.com/alexbelgium/hassio-addons -version: "5.1.4-19" +version: "5.1.4-20" From 5be731a7693a31b20383c9b9d454f44c78ce9179 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 26 Mar 2026 10:33:07 +0100 Subject: [PATCH 4/4] Update CHANGELOG.md --- qbittorrent/CHANGELOG.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/qbittorrent/CHANGELOG.md b/qbittorrent/CHANGELOG.md index 9ac5b5aae..90981dbbb 100644 --- a/qbittorrent/CHANGELOG.md +++ b/qbittorrent/CHANGELOG.md @@ -1,9 +1,6 @@ -## 5.1.4-19 (24-03-2026) -- Minor bugs fixed -## 5.1.4-18 (22-03-2026) -- Minor bugs fixed -## 5.1.4-17 (17-02-2026) -- Minor bugs fixed +- If multiple openvpn configs are available and none is defined in the options, use a random one +- Add upnp for vpn + ## 5.1.4-16 (16-02-2026) - Fix interface binding when VPN is disabled, so qBittorrent can use all available interfaces instead of staying on a previous VPN interface