This commit is contained in:
DL6ER 2017-03-01 10:52:21 +01:00
parent bd9dc91396
commit 721ada7e16
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -31,7 +31,7 @@ helpFunc() {
::: pihole -a listening allinterfaces : Listen on all interfaces, permit all origins ::: 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 gravityinterface : Listen only on one interface (see PIHOLE_INTERFACE)
::: pihole -a listening localsubnets : Listen on all interfaces, but allow only queries from ::: pihole -a listening localsubnets : Listen on all interfaces, but allow only queries from
::: devices that at most one hop away (local devices) ::: devices that are at most one hop away (local devices)
EOM EOM
exit 0 exit 0
} }
@ -397,7 +397,7 @@ SetListeningMode(){
echo "Listening only on interface ${PIHOLE_INTERFACE}" echo "Listening only on interface ${PIHOLE_INTERFACE}"
change_setting "DNSMASQ_LISTENING" "gravityinterface" change_setting "DNSMASQ_LISTENING" "gravityinterface"
else else
echo "Listening on all interfaces, permitting only origins that at most one hop away (local devices)" 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" "localsubnets"
fi fi