From 391a6cf1379637ae1a37d5e45efbd62babcb80d6 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 17 Aug 2025 15:48:29 +0200 Subject: [PATCH] Avoid remote --- qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh index 46e55bd65..20fc7b7b5 100755 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -1,3 +1,4 @@ + #!/usr/bin/with-contenv bashio # shellcheck shell=bash set -e @@ -56,7 +57,7 @@ if bashio::config.true 'openvpn_enabled'; then # Check if the line contains a txt file ####################################### - if [[ ! $line =~ ^"#" ]] && [[ ! $line =~ ^";" ]] && [[ "$line" == *" "*"."* ]] || [[ "$line" == "auth-user-pass"* ]]; then + if [[ ! $line =~ ^"#" ]] && [[ ! $line =~ ^";" ]] && [[ ! $line =~ ^"remote" ]] && [[ "$line" == *" "*"."* ]] || [[ "$line" == "auth-user-pass"* ]]; then # Extract the txt file name from the line file_name="$(echo "$line" | awk -F' ' '{print $2}')" # if contains only numbers and dots it is likely an ip, don't check it