Update run

This commit is contained in:
Alexandre
2022-05-04 19:06:56 +02:00
committed by GitHub
parent 6f72cc6c64
commit 4852b89aa4

View File

@@ -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