diff --git a/run/nobody/qbittorrent.sh b/run/nobody/qbittorrent.sh index 83ad66c..507bcdb 100644 --- a/run/nobody/qbittorrent.sh +++ b/run/nobody/qbittorrent.sh @@ -60,7 +60,7 @@ fi # change incoming port using the qbittorrent api - note this requires anonymous authentication via webui # option 'Bypass authentication for clients on localhost' -if [[ "${VPN_PROV}" == "pia" && -n "${VPN_INCOMING_PORT}" ]]; then +if [[ "${VPN_PROV}" == "pia" || "${VPN_PROV}" == "protonvpn" ]] && [[ -n "${VPN_INCOMING_PORT}" ]]; then # identify protocol, used by curl to connect to api if grep -q 'WebUI\\HTTPS\\Enabled=true' '/config/qBittorrent/config/qBittorrent.conf'; then diff --git a/run/nobody/watchdog.sh b/run/nobody/watchdog.sh index e6e3fa3..f45e177 100644 --- a/run/nobody/watchdog.sh +++ b/run/nobody/watchdog.sh @@ -97,7 +97,7 @@ while true; do fi - if [[ "${VPN_PROV}" == "pia" ]]; then + if [[ "${VPN_PROV}" == "pia" || "${VPN_PROV}" == "protonvpn" ]]; then # if vpn port is not an integer then dont change port if [[ ! "${VPN_INCOMING_PORT}" =~ ^-?[0-9]+$ ]]; then @@ -191,7 +191,7 @@ while true; do if [[ "${DEBUG}" == "true" && "${VPN_ENABLED}" == "yes" ]]; then - if [[ "${VPN_PROV}" == "pia" && -n "${VPN_INCOMING_PORT}" ]]; then + if [[ "${VPN_PROV}" == "pia" || "${VPN_PROV}" == "protonvpn" ]] && [[ -n "${VPN_INCOMING_PORT}" ]]; then echo "[debug] VPN incoming port is ${VPN_INCOMING_PORT}" echo "[debug] qBittorrent incoming port is ${qbittorrent_port}"