Use get_failover_interface here to find appropriate interface. Ticket #4482

Conflicts:
	etc/inc/ipsec.inc
This commit is contained in:
Chris Buechler 2015-03-06 00:55:42 -06:00
parent d8e4918f0a
commit 9c370fe6d3

View File

@ -190,10 +190,11 @@ function ipsec_get_phase1_src(& $ph1ent) {
if ($ph1ent['interface']) {
if (!is_ipaddr($ph1ent['interface'])) {
if ($ph1ent['protocol'] == "inet6") {
$interfaceip = get_interface_ipv6($ph1ent['interface']);
$if = get_failover_interface($ph1ent['interface']);
if ($ph1ent['protocol'] == "inet6") {
$interfaceip = get_interface_ipv6($if);
} else {
$interfaceip = get_interface_ip($ph1ent['interface']);
$interfaceip = get_interface_ip($if);
}
} else {
$interfaceip=$ph1ent['interface'];