diff --git a/qbittorrent/rootfs/etc/cont-init.d/00-openvpn.sh b/qbittorrent/rootfs/etc/cont-init.d/00-openvpn.sh index 3e2456a94..f65efed01 100755 --- a/qbittorrent/rootfs/etc/cont-init.d/00-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/00-openvpn.sh @@ -34,8 +34,12 @@ if [[ "$(bashio::config "VPN_ENABLED")" == "yes" ]] && [[ "$(bashio::config "VPN # Check proto if grep -q "proto" "$file"; then - echo "... proto not found in your ovpn, assuming UDP" - touch /data/udp + if [ -f /data/tdp ]; then + echo "... proto not found in your ovpn, assuming TDP" + sed -i "250a VPN_PROTOCOL=\"udp\"" /etc/cont-init.d/02-vpn.sh + else + echo "... proto not found in your ovpn, assuming UDP" + fi fi fi