Add option to skip restarting of dnsmasq
This commit is contained in:
@ -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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user