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 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" 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}"