Decrease initial delay for VPN leak monitoring

Reduced initial delay for VPN leak checks from 60 to 30 seconds.
This commit is contained in:
Alexandre
2025-11-24 14:10:48 +01:00
committed by GitHub
parent bb58c2898d
commit 53adeabb39

View File

@@ -71,7 +71,7 @@ _vpn_monitor_public_ip() {
local current_ip_file="/currentip"
local baseline_ip vpn_ip country
local interval=${VPN_LEAK_CHECK_INTERVAL:-300}
local initial_delay=${VPN_LEAK_INITIAL_DELAY:-60}
local initial_delay=${VPN_LEAK_INITIAL_DELAY:-30}
# Pre-flight checks
if ! command -v curl >/dev/null 2>&1; then
@@ -113,7 +113,7 @@ _vpn_monitor_public_ip() {
# LEAK DETECTED
if [[ "${vpn_ip}" == "${baseline_ip}" ]]; then
bashio::log.fatal "${vpn_label}: VPN LEAK DETECTED! Current IP ${vpn_ip} matches baseline. Stopping container."
s6-svscanctl -t /var/run/s6/services 2>/dev/null || true
bashio::addon.stop
exit 1
fi
fi