mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Change condition for VPN leakage service start
This commit is contained in:
@@ -231,7 +231,7 @@ echo "$(_fetch_public_ip || true)" > /currentip
|
|||||||
|
|
||||||
if bashio::config.true 'openvpn_enabled'; then
|
if bashio::config.true 'openvpn_enabled'; then
|
||||||
# Start Leak Monitor
|
# 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"
|
bashio::log.warning "Could not fetch public ip, the vpn leakage service will not run"
|
||||||
else
|
else
|
||||||
_vpn_monitor_public_ip "OpenVPN" &
|
_vpn_monitor_public_ip "OpenVPN" &
|
||||||
|
|||||||
Reference in New Issue
Block a user