diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2004-12-05 19:31:44 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2004-12-05 19:31:44 +0000 |
commit | 07bd3f83b401d8e9e9de3938e0a26c6e452660af (patch) | |
tree | 7f6913b347dc994dc57fa524f85a5436ff151f54 /usr/local/www/system.php | |
parent | 2ed803e736d9256aafae7a29ae0bb84aaf746c5f (diff) | |
download | pfsense-07bd3f83b401d8e9e9de3938e0a26c6e452660af.zip pfsense-07bd3f83b401d8e9e9de3938e0a26c6e452660af.tar.gz |
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.
Diffstat (limited to 'usr/local/www/system.php')
-rwxr-xr-x | usr/local/www/system.php | 7 |
1 files changed, 6 insertions, 1 deletions
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) { <span class="vexpl">IP addresses; these are also used for the DHCP service, DNS forwarder and for PPTP VPN clients<br> <br> - <input name="dnsallowoverride" type="checkbox" id="dnsallowoverride" value="yes" <?php if ($pconfig['dnsallowoverride'] == "yes") echo "checked"; ?>> + <input name="dnsallowoverride" type="checkbox" id="dnsallowoverride" value="yes" <?php if ($pconfig['dnsallowoverride']) echo "checked"; ?>> <strong>Allow DNS server list to be overridden by DHCP/PPP on WAN</strong><br> If this option is set, m0n0wall will use DNS servers assigned |