Add option to skip restarting of dnsmasq

This commit is contained in:
DL6ER 2017-03-01 11:26:06 +01:00
parent 3adf8785d8
commit 189a4e0078
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -401,10 +401,13 @@ SetListeningMode(){
change_setting "DNSMASQ_LISTENING" "local"
fi
# 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
}