mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-03 16:00:29 +01:00
Update IP retrieval method in WireGuard script
This commit is contained in:
@@ -77,6 +77,8 @@ else
|
||||
fi
|
||||
|
||||
# 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##*/}."
|
||||
|
||||
Reference in New Issue
Block a user