Update run

This commit is contained in:
Alexandre
2024-01-17 10:55:32 +01:00
committed by GitHub
parent 699bf3c5f3
commit f95a8de55f

View File

@@ -13,7 +13,7 @@ if [ -f /currentip ]; then
exec nginx || nginx -s reload & \
while true; do
# Get vpn ip
if bashio::config.true 'openvpn_alt_mode'; then
if ! bashio::config.true 'wireguard_enabled' && bashio::config.true 'openvpn_alt_mode'; then
curl -s ipecho.net/plain > /vpnip
else
curl -s ipecho.net/plain --interface tun0 > /vpnip