Revision 87e72a58
Added by Scott Ullrich over 18 years ago
usr/local/www/vpn_ipsec.php | ||
---|---|---|
152 | 152 |
<td class="listr" ondblclick="document.location='vpn_ipsec_edit.php?id=<?=$i;?>'"><?=$spans;?> |
153 | 153 |
<?php if ($ipsecent['interface']) { |
154 | 154 |
$iflabels = array('lan' => 'LAN', 'wan' => 'WAN'); |
155 |
for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) |
|
155 |
$carpips = find_number_of_needed_carp_interfaces(); |
|
156 |
for($i=0; $i<$carpips; $i++) { |
|
157 |
$carpip = find_interface_ip("carp" . $i); |
|
158 |
$iflabels['carp' . $i] = "CARP{$i} - $carpip"; |
|
159 |
} |
|
160 |
for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) |
|
156 | 161 |
$iflabels['opt' . $j] = $config['interfaces']['opt' . $j]['descr']; |
157 |
$if = htmlspecialchars($iflabels[$ipsecent['interface']]);
|
|
162 |
$if = htmlspecialchars($iflabels[$ipsecent['interface']]); |
|
158 | 163 |
} else |
159 | 164 |
$if = "WAN"; |
160 | 165 |
|
Also available in: Unified diff
Allow CARP addresses to be the IPSEC endpoint.
This cleans up the code GREATLY and removes the FAILOVER IPSEC hack.