dns forwarder reload flushed setting (https://github.com/opnsense/core/issues/37)

changed post handling for apply button.
This commit is contained in:
Ad Schellevis 2015-02-19 12:41:17 +00:00
parent 01d102aaf8
commit 38000b3acb

View File

@ -57,7 +57,7 @@ if (!is_array($config['dnsmasq']['domainoverrides']))
$a_hosts = &$config['dnsmasq']['hosts'];
$a_domainOverrides = &$config['dnsmasq']['domainoverrides'];
if ($_POST) {
if ($_POST && isset($_POST['submit'])) {
$pconfig = $_POST;
unset($input_errors);
@ -96,19 +96,20 @@ if ($_POST) {
if (!$input_errors) {
write_config();
$retval = 0;
$retval = services_dnsmasq_configure();
$savemsg = get_std_save_message($retval);
}
} elseif ($_POST && isset($_POST['apply']) ) {
// Relaod filter (we might need to sync to CARP hosts)
// Reload filter (we might need to sync to CARP hosts)
filter_configure();
/* Update resolv.conf in case the interface bindings exclude localhost. */
system_resolvconf_generate();
$retval = services_dnsmasq_configure();
$savemsg = get_std_save_message($retval);
if ($retval == 0)
clear_subsystem_dirty('hosts');
}
}
if ($_GET['act'] == "del") {