diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-08-24 15:07:05 +0200 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-08-24 15:07:05 +0200 |
commit | 16b03b7985616c4444ba428123b1ba48e7d0ebcc (patch) | |
tree | 5ff1d2e116bf82dd6d5cfcba0026dcf158c6cfcd | |
parent | fcb816d9d0ee3488b60c6577c9236452f23832c6 (diff) | |
download | pfsense-16b03b7985616c4444ba428123b1ba48e7d0ebcc.zip pfsense-16b03b7985616c4444ba428123b1ba48e7d0ebcc.tar.gz |
Fix a typo in the subnet generation causing the code to fail
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index dbdeb39..8303664 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -128,7 +128,7 @@ if ($_POST) { if(empty($parent_ip) || empty($parent_sn)) { $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; + $subnet = gen_subnetv6($parent_ip, $parent_sn) . "/" . $parent_sn; if(!ip_in_subnet($_POST['gateway'], $subnet)) $input_errors[] = sprintf(gettext("The gateway address %1\$s does not lie within the chosen interface's subnet '%2\$s'."), $_POST['gateway'],$subnet); } |