mirror of
https://github.com/pi-hole/pi-hole
synced 2025-02-02 03:11:11 +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"
|
change_setting "DNSMASQ_LISTENING" "local"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ProcessDNSSettings
|
# Don't restart DNS server yet because other settings
|
||||||
|
# will be applied afterwards if "-web" is set
|
||||||
# Restart dnsmasq to load new configuration
|
if [[ "${args[3]}" != "-web" ]]; then
|
||||||
RestartDNS
|
ProcessDNSSettings
|
||||||
|
# Restart dnsmasq to load new configuration
|
||||||
|
RestartDNS
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user