Revision 486d7278
Added by Chris Buechler over 10 years ago
etc/inc/ipsec.inc | ||
---|---|---|
193 | 193 |
|
194 | 194 |
if ($ph1ent['interface']) { |
195 | 195 |
if (!is_ipaddr($ph1ent['interface'])) { |
196 |
if (strpos($ph1ent['interface'], '_vip')) { |
|
197 |
$if = $ph1ent['interface']; |
|
198 |
} else { |
|
196 | 199 |
$if = get_failover_interface($ph1ent['interface']); |
197 |
if ($ph1ent['protocol'] == "inet6") { |
|
198 |
$interfaceip = get_interface_ipv6($if); |
|
199 |
} else { |
|
200 |
$interfaceip = get_interface_ip($if); |
|
201 |
} |
|
200 |
} |
|
201 |
if ($ph1ent['protocol'] == "inet6") { |
|
202 |
$interfaceip = get_interface_ipv6($if); |
|
203 |
} else { |
|
204 |
$interfaceip = get_interface_ip($if); |
|
205 |
} |
|
202 | 206 |
} else { |
203 | 207 |
$interfaceip=$ph1ent['interface']; |
204 | 208 |
} |
Also available in: Unified diff
Fix IPsec on CARP IPs, broken when fixing IPsec with gateway groups and VIPs.