mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
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:
@@ -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" &
|
||||
|
||||
Reference in New Issue
Block a user