From 07bd3f83b401d8e9e9de3938e0a26c6e452660af Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 5 Dec 2004 19:31:44 +0000 Subject: Synchornize with m0n0wall 1.2b3. These files have not really been modified too much so a straight copy works. 9 files remain to be patched by hand. --- usr/local/www/system.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'usr/local/www/system.php') diff --git a/usr/local/www/system.php b/usr/local/www/system.php index 90e9502..bafb83d 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -120,6 +120,7 @@ if ($_POST) { if ($_POST['dns2']) $config['system']['dnsserver'][] = $_POST['dns2']; + $olddnsallowoverride = $config['system']['dnsallowoverride']; $config['system']['dnsallowoverride'] = $_POST['dnsallowoverride'] ? true : false; if ($_POST['password']) { @@ -142,6 +143,10 @@ if ($_POST) { $retval |= services_dnsmasq_configure(); $retval |= system_timezone_configure(); $retval |= system_ntp_configure(); + + if ($olddnsallowoverride != $config['system']['dnsallowoverride']) + $retval |= interfaces_wan_configure(); + config_unlock(); } @@ -186,7 +191,7 @@ if ($_POST) { IP addresses; these are also used for the DHCP service, DNS forwarder and for PPTP VPN clients

- > + > Allow DNS server list to be overridden by DHCP/PPP on WAN
If this option is set, m0n0wall will use DNS servers assigned -- cgit v1.1