Revision 9d8ee15b
Added by Seth Mos almost 14 years ago
usr/local/www/system.php | ||
---|---|---|
125 | 125 |
if (($_POST[$dnsname] && !is_ipaddr($_POST[$dnsname]))) { |
126 | 126 |
$input_errors[] = gettext("A valid IP address must be specified for the DNS server $dnscounter."); |
127 | 127 |
} |
128 |
if (($_POST[$dnsgwname] && validate_address_family(lookup_gateway_ip_by_name($_POST[$dnsgwname])))) {
|
|
129 |
$input_errors[] = gettext("The gateway specified for DNS server $dnscounter is not from the same Address Family.");
|
|
128 |
if (($_POST[$dnsgwname] <> "none") && (validate_address_family($_POST[$dnsname], lookup_gateway_ip_by_name($_POST[$dnsgwname])) === false )) {
|
|
129 |
$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]) ."'.");
|
|
130 | 130 |
} |
131 | 131 |
} |
132 | 132 |
|
Also available in: Unified diff
Fix the address family check to skip empty DNS gateway fieldS