summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-10-25 10:41:28 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-10-25 10:42:02 -0200
commitbf75550387f2d76a0300253a322f42d6ecdf6460 (patch)
treed861f990f518ca7d5b865c9fcc6bf55d312600d6 /usr/local/www/system_gateways_edit.php
parentcbe12b8de3fa374e535d4478ab84a4a2c5f6e725 (diff)
downloadpfsense-bf75550387f2d76a0300253a322f42d6ecdf6460.zip
pfsense-bf75550387f2d76a0300253a322f42d6ecdf6460.tar.gz
Use a more accurate error message, fixes #3282
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-xusr/local/www/system_gateways_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index 9f910fc..3473bb0 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -117,7 +117,7 @@ if ($_POST) {
$parent_ip = get_interface_ip($_POST['interface']);
$parent_sn = get_interface_subnet($_POST['interface']);
if(empty($parent_ip) || empty($parent_sn)) {
- $input_errors[] = gettext("You can not use a IPv4 Gateway Address on a IPv6 only interface.");
+ $input_errors[] = gettext("Cannot add IPv4 Gateway Address because no IPv4 address could be found on the interface.");
} else {
$subnets = array(gen_subnet($parent_ip, $parent_sn) . "/" . $parent_sn);
$vips = link_interface_to_vips($_POST['interface']);
@@ -145,7 +145,7 @@ if ($_POST) {
$parent_ip = get_interface_ipv6($_POST['interface']);
$parent_sn = get_interface_subnetv6($_POST['interface']);
if(empty($parent_ip) || empty($parent_sn)) {
- $input_errors[] = gettext("You can not use a IPv6 Gateway Address on a IPv4 only interface.");
+ $input_errors[] = gettext("Cannot add IPv6 Gateway Address because no IPv6 address could be found on the interface.");
} else {
$subnets = array(gen_subnetv6($parent_ip, $parent_sn) . "/" . $parent_sn);
$vips = link_interface_to_vips($_POST['interface']);
OpenPOWER on IntegriCloud