mirror of
https://github.com/pi-hole/pi-hole
synced 2025-02-01 19:01:13 +00:00
Add option to skip restarting of dnsmasq
This commit is contained in:
parent
3adf8785d8
commit
189a4e0078
@ -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 New Issue
Block a user