From ddd8745cc7c5bb1cb5260e635151cb9779345bca Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 6 May 2022 18:21:13 +0200 Subject: [PATCH] Update 93-openvpn.sh --- qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh index 3c8a9c160..c1d4a2c7c 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -74,6 +74,9 @@ if bashio::config.true 'openvpn_enabled'; then LINE=$((LINE + 1)) SESSION=$(sed -n '/BitTorrent/=' "$QBT_CONFIG_FILE") + # Get current ip + echo "$(curl -s ipecho.net/plain)" > /currentip2 + # If qBittorrent.conf exists if [ -f "$QBT_CONFIG_FILE" ]; then # Remove previous line and bind tun0