mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-20 10:30:31 +01:00
Update IP retrieval method in WireGuard script
This commit is contained in:
@@ -77,6 +77,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Get current ip
|
# Get current ip
|
||||||
curl -s ipecho.net/plain > /currentip
|
( curl -fsS --max-time 10 https://ifconfig.co/ip \
|
||||||
|
|| curl -fsS --max-time 10 https://api64.ipify.org \
|
||||||
|
|| curl -fsS --max-time 10 https://ipecho.net/plain ) > /currentip
|
||||||
|
|
||||||
bashio::log.info "WireGuard prepared with interface ${interface_name} using configuration ${wireguard_config##*/}."
|
bashio::log.info "WireGuard prepared with interface ${interface_name} using configuration ${wireguard_config##*/}."
|
||||||
|
|||||||
Reference in New Issue
Block a user