From bd9dc91396cc98f2d5fb00217b1fbae31c029c1f Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 1 Mar 2017 10:50:13 +0100 Subject: [PATCH] Add response for users manually setting this up via CLI --- advanced/Scripts/webpage.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index 8f813d4b..4dc22711 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -30,7 +30,7 @@ helpFunc() { ::: listening Setup interface listening behavior of dnsmasq ::: pihole -a listening allinterfaces : Listen on all interfaces, permit all origins ::: pihole -a listening gravityinterface : Listen only on one interface (see PIHOLE_INTERFACE) -::: pihole -a listening localsubnets : Listen only on all interfaces, but allow only +::: pihole -a listening localsubnets : Listen on all interfaces, but allow only queries from ::: devices that at most one hop away (local devices) EOM exit 0 @@ -388,11 +388,16 @@ SetHostRecord(){ SetListeningMode(){ + source "${setupVars}" + if [[ "${args[2]}" == "allinterfaces" ]] ; then + echo "Listening on all interfaces, permiting all origins" change_setting "DNSMASQ_LISTENING" "allinterfaces" elif [[ "${args[2]}" == "gravityinterface" ]] ; then + echo "Listening only on interface ${PIHOLE_INTERFACE}" change_setting "DNSMASQ_LISTENING" "gravityinterface" else + echo "Listening on all interfaces, permitting only origins that at most one hop away (local devices)" change_setting "DNSMASQ_LISTENING" "localsubnets" fi