diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-10-25 10:41:28 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-10-25 10:41:28 -0200 |
commit | f44ac2e9734396efa0653fbed255c28e074ae8dd (patch) | |
tree | 606c9e433ed6beec4284666081a3ba7058f129b7 /usr | |
parent | 53c5407e646028a003b2765a87dd3316b21a9497 (diff) | |
download | pfsense-f44ac2e9734396efa0653fbed255c28e074ae8dd.zip pfsense-f44ac2e9734396efa0653fbed255c28e074ae8dd.tar.gz |
Use a more accurate error message, fixes #3282
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 4 |
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 a1a0df5..91601c2 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']); |