Merge pull request #127 from home-assistant/pvizeli-patch-1

Fix dnsmasq hosts
This commit is contained in:
Pascal Vizeli
2017-06-21 21:50:15 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -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/",

View File

@@ -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