mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update IP retrieval method in OpenVPN script
This commit is contained in:
@@ -15,7 +15,9 @@ if bashio::config.true 'openvpn_enabled'; then
|
|||||||
bashio::log.info "----------------------------"
|
bashio::log.info "----------------------------"
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
# Function to check for files path
|
# Function to check for files path
|
||||||
function check_path() {
|
function check_path() {
|
||||||
|
|||||||
Reference in New Issue
Block a user