summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-03-26 01:19:20 +0000
committerErmal Luçi <eri@pfsense.org>2009-03-26 01:19:32 +0000
commit67763264c33c7ee677e9699eaebbf6e8246ccfde (patch)
tree1af562832e1e6740403e0d2fe0dc45865c8b5a37 /usr/local/www/firewall_virtual_ip_edit.php
parentbb34737fbae53d57bd0bbcfc846bb09330e8e985 (diff)
downloadpfsense-67763264c33c7ee677e9699eaebbf6e8246ccfde.zip
pfsense-67763264c33c7ee677e9699eaebbf6e8246ccfde.tar.gz
Use the new function of interfaces and get_interface_ip to get propper results.
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php
index be16c55..37e59f7 100755
--- a/usr/local/www/firewall_virtual_ip_edit.php
+++ b/usr/local/www/firewall_virtual_ip_edit.php
@@ -136,10 +136,10 @@ if ($_POST) {
$can_post = true;
$found = false;
$subnet_ip = return_first_two_octets($_POST['subnet']);
- $iflist = get_configured_interface_list(false, true);
- foreach($iflist as $if) {
- $ww_subnet_ip = $config['interfaces'][$if]['ipaddr'];
- $ww_subnet_bits = $config['interfaces'][$if]['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);
if (ip_in_subnet($_POST['subnet'], gen_subnet($ww_subnet_ip, $ww_subnet_bits) . "/" . $ww_subnet_bits))
$found = true;
}
OpenPOWER on IntegriCloud