From b74862bfc57ea90b4ae807c5aae59247f091219c Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 1 Mar 2017 11:02:08 +0100 Subject: [PATCH] Actually apply new setting by restarting dnsmasq --- advanced/Scripts/webpage.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index df1bd3b2..f10e9dca 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -392,15 +392,20 @@ SetListeningMode(){ if [[ "${args[2]}" == "all" ]] ; then echo "Listening on all interfaces, permiting all origins, hope you have a firewall!" - change_setting "DNSMASQ_LISTENING" "allinterfaces" + change_setting "DNSMASQ_LISTENING" "all" elif [[ "${args[2]}" == "single" ]] ; then echo "Listening only on interface ${PIHOLE_INTERFACE}" - change_setting "DNSMASQ_LISTENING" "gravityinterface" + change_setting "DNSMASQ_LISTENING" "single" else echo "Listening on all interfaces, permitting only origins that are at most one hop away (local devices)" - change_setting "DNSMASQ_LISTENING" "localsubnets" + change_setting "DNSMASQ_LISTENING" "local" fi + ProcessDNSSettings + + # Restart dnsmasq to load new configuration + RestartDNS + } main() {