From 6c86a39f8efc2906f53dafe57b304ed8b3241e84 Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 12 Aug 2011 11:46:58 +0000 Subject: Allow disabling having localhost in resolv.conf. There are some special setups that might need this. --- usr/local/www/system_advanced_misc.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'usr/local') diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php index c418505..eda90d6 100644 --- a/usr/local/www/system_advanced_misc.php +++ b/usr/local/www/system_advanced_misc.php @@ -65,6 +65,7 @@ $pconfig['powerd_enable'] = isset($config['system']['powerd_enable']); $pconfig['glxsb_enable'] = isset($config['system']['glxsb_enable']); $pconfig['schedule_states'] = isset($config['system']['schedule_states']); $pconfig['kill_states'] = isset($config['system']['kill_states']); +$pconfig['dnslocalhost'] = isset($config['system']['dnslocalhost']); if ($_POST) { @@ -158,9 +159,15 @@ if ($_POST) { else unset($config['system']['kill_states']); + if($_POST['dnslocalhost'] == "yes") + $config['system']['dnslocalhost'] = true; + else + unset($config['system']['dnslocalhost']); + write_config(); $retval = 0; + system_resolvconf_generate(true); $retval = filter_configure(); if(stristr($retval, "error") <> true) $savemsg = get_std_save_message(gettext($retval)); @@ -391,6 +398,21 @@ function maxmss_checked(obj) {   + + + + + + /> +
+ + + + +   + + -- cgit v1.1