Modify VPN monitor condition for public IP check

Change condition to check if /currentip is not empty before starting the VPN monitor.
This commit is contained in:
Alexandre
2025-11-24 09:09:56 +01:00
committed by GitHub
parent 72d1071fa5
commit 81cee949ab

View File

@@ -255,7 +255,7 @@ elif bashio::config.true 'wireguard_enabled'; then
_setup_wireguard
# Start Leak Monitor
if [[ -s /currentip ]]; then
if [[ ! -s /currentip ]]; then
bashio::log.warning "Could not fetch public ip, the vpn leakage service will not run"
else
_vpn_monitor_public_ip "WireGuard" &