mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-29 01:02:33 +01:00
Merge pull request #2613 from alexbelgium/copilot/fix-openvpn-random-selection
fix(qbittorrent): restore random OpenVPN config selection when multiple files present
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user