From 615f71cfd7088f62f33f8c85f0f00613b522422f Mon Sep 17 00:00:00 2001 From: Jonas Date: Thu, 29 Oct 2020 15:06:41 +0100 Subject: [PATCH] DuckDns script read config off ipv4 and ipv6 correctly (#1654) * Omit // empty as this is done by bashio already * Bump version number * Update changelog --- duckdns/CHANGELOG.md | 4 ++++ duckdns/config.json | 2 +- duckdns/data/run.sh | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/duckdns/CHANGELOG.md b/duckdns/CHANGELOG.md index b5ad2be..fa8445f 100644 --- a/duckdns/CHANGELOG.md +++ b/duckdns/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.12.2 + +- Rely on bashio to handle empty IPv4 / IPv6 + ## 1.12.1 - Clean up dehydrated lock file at start also if no live cert exists diff --git a/duckdns/config.json b/duckdns/config.json index 477f2f0..8c0df29 100644 --- a/duckdns/config.json +++ b/duckdns/config.json @@ -1,6 +1,6 @@ { "name": "Duck DNS", - "version": "1.12.1", + "version": "1.12.2", "slug": "duckdns", "description": "Free Dynamic DNS (DynDNS or DDNS) service with Let's Encrypt support", "url": "https://github.com/home-assistant/hassio-addons/tree/master/duckdns", diff --git a/duckdns/data/run.sh b/duckdns/data/run.sh index 39b970c..a20891c 100755 --- a/duckdns/data/run.sh +++ b/duckdns/data/run.sh @@ -7,8 +7,8 @@ WORK_DIR=/data/workdir LE_UPDATE="0" # DuckDNS -IPV4=$(bashio::config 'ipv4 // empty') -IPV6=$(bashio::config 'ipv6 // empty') +IPV4=$(bashio::config 'ipv4') +IPV6=$(bashio::config 'ipv6') TOKEN=$(bashio::config 'token') DOMAINS=$(bashio::config 'domains | join(",")') WAIT_TIME=$(bashio::config 'seconds')