mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-18 18:38:17 +01:00
Update run
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
bashio::net.wait_for 8080 localhost 900
|
||||
|
||||
if [ -f /currentip ]; then
|
||||
if [[ "$(curl ipecho.net/plain)" = "$(cat /currentip)" ]]; then
|
||||
if [[ "$(curl -s ipecho.net/plain)" = "$(cat /currentip)" ]]; then
|
||||
bashio::log.fatal "VPN is not properly configured. Your ip is exposed. Please fix this, or do not use the vpn alt mode"
|
||||
bashio::exit.nok
|
||||
else
|
||||
bashio::log "VPN is up and running with ip $(curl ipecho.net/plain)"
|
||||
bashio::log "VPN is up and running with ip $(curl -s ipecho.net/plain)"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user