mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +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"
|
||||
fi
|
||||
|
||||
ProcessDNSSettings
|
||||
|
||||
# Restart dnsmasq to load new configuration
|
||||
RestartDNS
|
||||
# Don't restart DNS server yet because other settings
|
||||
# will be applied afterwards if "-web" is set
|
||||
if [[ "${args[3]}" != "-web" ]]; then
|
||||
ProcessDNSSettings
|
||||
# Restart dnsmasq to load new configuration
|
||||
RestartDNS
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue