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