summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-10-01 15:18:17 +0000
committerErmal Luçi <eri@pfsense.org>2009-10-01 15:19:42 +0000
commitabcb2bed927c18f29b12972f023b253c703132d1 (patch)
treee06b5f0da200a6694b2d3a5ba79907fb6de06b46 /usr/local/www/vpn_ipsec.php
parent6b0c587976d5941bce0b7e569a519f7e7fcbc62a (diff)
downloadpfsense-abcb2bed927c18f29b12972f023b253c703132d1.zip
pfsense-abcb2bed927c18f29b12972f023b253c703132d1.tar.gz
* Convert carp/vips code to behave the same as other interfaces.
* Make optimizations around it. * Make sure when we reload teh underlying interface we reload carp too. * Some fixes around the code. Reviewed-by: scott@ and billm@
Diffstat (limited to 'usr/local/www/vpn_ipsec.php')
-rwxr-xr-xusr/local/www/vpn_ipsec.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php
index 8e7ab85..9eb6ac1 100755
--- a/usr/local/www/vpn_ipsec.php
+++ b/usr/local/www/vpn_ipsec.php
@@ -182,11 +182,9 @@ include("head.inc");
<?php
if ($ph1ent['interface']) {
$iflabels = get_configured_interface_with_descr();
- $carpips = find_number_of_needed_carp_interfaces();
- for( $j=0; $j<$carpips; $j++ ) {
- $carpip = find_interface_ip("carp" . $j);
- $iflabels['carp' . $j] = "CARP{$j} ({$carpip})";
- }
+ $carplist = get_configured_carp_interface_list();
+ foreach ($carplist as $cif => $carpip)
+ $iflabels[$cif] = strtoupper($cif) . " ({$carpip})";
$if = htmlspecialchars($iflabels[$ph1ent['interface']]);
}
else
OpenPOWER on IntegriCloud