diff options
author | jim-p <jim@pingle.org> | 2009-05-12 16:08:59 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2009-05-12 16:08:59 -0400 |
commit | 673e587db9f14bcd8e7ffd5e772db5bc72b0e0e7 (patch) | |
tree | 012d8dcbe7e7c94fab0eadbf45bce07274eca588 | |
parent | 1f381f93fd9c7419ca34d538cbb2cafeab5fbecb (diff) | |
download | pfsense-673e587db9f14bcd8e7ffd5e772db5bc72b0e0e7.zip pfsense-673e587db9f14bcd8e7ffd5e772db5bc72b0e0e7.tar.gz |
Fix CARP IP Creation. Subnet check was failing even for valid input. See ticket #1925
-rwxr-xr-x | usr/local/www/firewall_virtual_ip_edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index d6d82b8..2aca9be 100755 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -137,8 +137,8 @@ if ($_POST) { $subnet_ip = return_first_two_octets($_POST['subnet']); $iflist = get_configured_interface_list_by_realif(false, true); foreach($iflist as $realif => $if) { - $ww_subnet_ip = get_interface_ip($realif); - $ww_subnet_bits = get_interface_subnet($realif); + $ww_subnet_ip = get_interface_ip($if); + $ww_subnet_bits = get_interface_subnet($if); if (ip_in_subnet($_POST['subnet'], gen_subnet($ww_subnet_ip, $ww_subnet_bits) . "/" . $ww_subnet_bits)) $found = true; } |