summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/ipsec.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc
index 8c0d11f..7a4469f 100644
--- a/etc/inc/ipsec.inc
+++ b/etc/inc/ipsec.inc
@@ -167,11 +167,9 @@ function ipsec_get_phase1_src(& $ph1ent) {
if ($ph1ent['interface']) {
if (!is_ipaddr($ph1ent['interface'])) {
if ($ph1ent['protocol'] == "inet6") {
- $if = get_failover_interface($ph1ent['interface'], "inet6");
- $interfaceip = get_interface_ipv6($if);
+ $interfaceip = get_interface_ipv6($ph1ent['interface']);
} else {
- $if = get_failover_interface($ph1ent['interface']);
- $interfaceip = get_interface_ip($if);
+ $interfaceip = get_interface_ip($ph1ent['interface']);
}
} else {
$interfaceip=$ph1ent['interface'];
OpenPOWER on IntegriCloud