diff options
author | Jim P <jim@pingle.org> | 2013-02-01 13:21:42 -0800 |
---|---|---|
committer | Jim P <jim@pingle.org> | 2013-02-01 13:21:42 -0800 |
commit | c5e48525b47440c0ba2abbd9ef13f3f84cb96286 (patch) | |
tree | 758bd3c6a37884376fa7f90a415ab7e8ce2667c7 /usr | |
parent | 3d54aa10caf2d78e2ee6550321ffdb087c550830 (diff) | |
parent | 60037e00aa22987957480b44e2a2e721a412ba2d (diff) | |
download | pfsense-c5e48525b47440c0ba2abbd9ef13f3f84cb96286.zip pfsense-c5e48525b47440c0ba2abbd9ef13f3f84cb96286.tar.gz |
Merge pull request #366 from bcyrill/patch-5
Correct IP family mix-up.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index de11cfc..f040520 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 IPv6 Gateway Address on a IPv4 only interface."); + $input_errors[] = gettext("You can not use a IPv4 Gateway Address on a IPv6 only interface."); } else { $subnet = gen_subnet($parent_ip, $parent_sn) . "/" . $parent_sn; if(!ip_in_subnet($_POST['gateway'], $subnet)) @@ -130,7 +130,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 IPv4 Gateway Address on a IPv6 only interface."); + $input_errors[] = gettext("You can not use a IPv6 Gateway Address on a IPv4 only interface."); } else { $subnet = gen_subnetv6($parent_ip, $parent_sn) . "/" . $parent_sn; if(!ip_in_subnet($_POST['gateway'], $subnet)) @@ -637,4 +637,4 @@ function monitor_change() { monitor_change(); </script> </body> -</html>
\ No newline at end of file +</html> |