summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-04-20 22:08:01 +0200
committersmos <seth.mos@dds.nl>2012-04-20 22:08:01 +0200
commitd008a24ed553fd0c0d508b17b011ddea588143cc (patch)
tree4565a0dd6fb13d0e68d3595953ed01a6baa48393 /usr/local/www
parentb4a89a6820ce46e4cffabd3011abc943fd3000fd (diff)
downloadpfsense-d008a24ed553fd0c0d508b17b011ddea588143cc.zip
pfsense-d008a24ed553fd0c0d508b17b011ddea588143cc.tar.gz
Unbreak the system general DNS settings, it would not work anymore when set to none.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/system.php2
1 files changed, 1 insertions, 1 deletions
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]) ."'.");
}
}
OpenPOWER on IntegriCloud