diff options
Diffstat (limited to 'etc/inc/ipsec.inc')
-rw-r--r-- | etc/inc/ipsec.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index 0780e2f..bbc5ac2 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -193,10 +193,11 @@ function ipsec_get_phase1_src(& $ph1ent) { if ($ph1ent['interface']) { if (!is_ipaddr($ph1ent['interface'])) { + $if = get_failover_interface($ph1ent['interface']); if ($ph1ent['protocol'] == "inet6") { - $interfaceip = get_interface_ipv6($ph1ent['interface']); + $interfaceip = get_interface_ipv6($if); } else { - $interfaceip = get_interface_ip($ph1ent['interface']); + $interfaceip = get_interface_ip($if); } } else { $interfaceip=$ph1ent['interface']; |