mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Add response for users manually setting this up via CLI
This commit is contained in:
parent
de6c43a8d3
commit
bd9dc91396
1 changed files with 6 additions and 1 deletions
|
@ -30,7 +30,7 @@ helpFunc() {
|
||||||
::: listening Setup interface listening behavior of dnsmasq
|
::: listening Setup interface listening behavior of dnsmasq
|
||||||
::: 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 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)
|
::: devices that at most one hop away (local devices)
|
||||||
EOM
|
EOM
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -388,11 +388,16 @@ SetHostRecord(){
|
||||||
|
|
||||||
SetListeningMode(){
|
SetListeningMode(){
|
||||||
|
|
||||||
|
source "${setupVars}"
|
||||||
|
|
||||||
if [[ "${args[2]}" == "allinterfaces" ]] ; then
|
if [[ "${args[2]}" == "allinterfaces" ]] ; then
|
||||||
|
echo "Listening on all interfaces, permiting all origins"
|
||||||
change_setting "DNSMASQ_LISTENING" "allinterfaces"
|
change_setting "DNSMASQ_LISTENING" "allinterfaces"
|
||||||
elif [[ "${args[2]}" == "gravityinterface" ]] ; then
|
elif [[ "${args[2]}" == "gravityinterface" ]] ; then
|
||||||
|
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)"
|
||||||
change_setting "DNSMASQ_LISTENING" "localsubnets"
|
change_setting "DNSMASQ_LISTENING" "localsubnets"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue