mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Add option to skip restarting of dnsmasq
This commit is contained in:
parent
3adf8785d8
commit
189a4e0078
1 changed files with 7 additions and 4 deletions
|
@ -401,10 +401,13 @@ SetListeningMode(){
|
||||||
change_setting "DNSMASQ_LISTENING" "local"
|
change_setting "DNSMASQ_LISTENING" "local"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Don't restart DNS server yet because other settings
|
||||||
|
# will be applied afterwards if "-web" is set
|
||||||
|
if [[ "${args[3]}" != "-web" ]]; then
|
||||||
ProcessDNSSettings
|
ProcessDNSSettings
|
||||||
|
|
||||||
# Restart dnsmasq to load new configuration
|
# Restart dnsmasq to load new configuration
|
||||||
RestartDNS
|
RestartDNS
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue