From d008a24ed553fd0c0d508b17b011ddea588143cc Mon Sep 17 00:00:00 2001 From: smos Date: Fri, 20 Apr 2012 22:08:01 +0200 Subject: Unbreak the system general DNS settings, it would not work anymore when set to none. --- usr/local/www/system.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/system.php b/usr/local/www/system.php index 6662f93..d149e11 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -128,7 +128,7 @@ if ($_POST) { if (($_POST[$dnsname] && !is_ipaddr($_POST[$dnsname]))) { $input_errors[] = gettext("A valid IP address must be specified for the DNS server $dnscounter."); } - if (($_POST[$dnsgwname]) && (is_ipaddr($_POST[$dnsname])) && (validate_address_family($_POST[$dnsname], lookup_gateway_ip_by_name($_POST[$dnsgwname])) === false )) { + if (($_POST[$dnsgwname] <> "none") && (is_ipaddr($_POST[$dnsname])) && (validate_address_family($_POST[$dnsname], lookup_gateway_ip_by_name($_POST[$dnsgwname])) === false )) { $input_errors[] = gettext("The gateway specified for DNS server '{$_POST[$dnsname]}' is not from the same Address Family as gateway '". lookup_gateway_ip_by_name($_POST[$dnsgwname]) ."'."); } } -- cgit v1.1