Fix bug with wrongly bound config value (#1660)

* Fix embarrasing mistake setting config value

* Update changelog
This commit is contained in:
Jonas
2020-10-30 10:42:43 +01:00
committed by GitHub
parent d1c5004077
commit 92a0545028
3 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,9 @@
# Changelog
## 1.12.4
- Fix bug where IPv6 got the value of IPv4
## 1.12.3
- Dont set IPv4 / IPv6 in duckdns request if config is unset

View File

@@ -1,6 +1,6 @@
{
"name": "Duck DNS",
"version": "1.12.3",
"version": "1.12.4",
"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",

View File

@@ -8,7 +8,7 @@ LE_UPDATE="0"
# DuckDNS
if bashio::config.has_value "ipv4"; then IPV4=$(bashio::config 'ipv4'); else IPV4=""; fi
if bashio::config.has_value "ipv6"; then IPV6=$(bashio::config 'ipv4'); else IPV6=""; fi
if bashio::config.has_value "ipv6"; then IPV6=$(bashio::config 'ipv6'); else IPV6=""; fi
TOKEN=$(bashio::config 'token')
DOMAINS=$(bashio::config 'domains | join(",")')
WAIT_TIME=$(bashio::config 'seconds')