From c5d5dcccc1903d36c69096ede8bf4508a4a688b4 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 21 Jun 2017 21:45:19 +0200 Subject: [PATCH 1/2] fix hosts setup --- dnsmasq/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsmasq/run.sh b/dnsmasq/run.sh index f91b909..02cb604 100644 --- a/dnsmasq/run.sh +++ b/dnsmasq/run.sh @@ -28,8 +28,8 @@ done # Create static hosts for (( i=0; i < "$HOSTS"; i++ )); do - HOST=$(jq --raw-output ".forwards[$i].host" $CONFIG_PATH) - IP=$(jq --raw-output ".forwards[$i].ip" $CONFIG_PATH) + HOST=$(jq --raw-output ".hosts[$i].host" $CONFIG_PATH) + IP=$(jq --raw-output ".hosts[$i].ip" $CONFIG_PATH) echo "address=/$HOST/$IP" >> /etc/dnsmasq.conf done From 92f0247e7bb79eab1ed704191f7ee88f56cc138f Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 21 Jun 2017 21:46:24 +0200 Subject: [PATCH 2/2] Update config.json --- dnsmasq/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsmasq/config.json b/dnsmasq/config.json index 16dd55d..48a83d4 100644 --- a/dnsmasq/config.json +++ b/dnsmasq/config.json @@ -1,6 +1,6 @@ { "name": "Dnsmasq server", - "version": "0.3", + "version": "0.4", "slug": "dnsmasq", "description": "A simple dns server with benefits", "url": "https://home-assistant.io/addons/dnsmasq/",