From 8dfbb7340e91453e833f533c683a450d5f8e6864 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 25 May 2017 00:33:33 +0200 Subject: [PATCH] Update run.sh --- dnsmasq/run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dnsmasq/run.sh b/dnsmasq/run.sh index 3690c94..e3f8068 100644 --- a/dnsmasq/run.sh +++ b/dnsmasq/run.sh @@ -6,6 +6,10 @@ CONFIG_PATH=/data/options.json DEFAULTS=$(jq --raw-output '.domain' $CONFIG_PATH) FORWARDS=$(jq --raw-output '.forwards | length' $CONFIG_PATH) HOSTS=$(jq --raw-output '.hosts | length' $CONFIG_PATH) +INTERFACE=$(jq --raw-output '.interface | length' $CONFIG_PATH) + +# Set interface +echo "interface=$INTERFACE" >> /etc/dnsmasq.conf # Add default forward servers for line in $DEFAULTS; do