summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-03-06 00:55:42 -0600
committerChris Buechler <cmb@pfsense.org>2015-03-06 00:55:42 -0600
commita115e2e14a79a06cfd9a60ae9b534aed074c060c (patch)
treeee07f4e08b907221bff3b5a520b6bbf48c1505b0
parentc406924f3ef4996ff0eaa5fc6cf1a04c39220a5f (diff)
downloadpfsense-a115e2e14a79a06cfd9a60ae9b534aed074c060c.zip
pfsense-a115e2e14a79a06cfd9a60ae9b534aed074c060c.tar.gz
Use get_failover_interface here to find appropriate interface. Ticket #4482
-rw-r--r--etc/inc/ipsec.inc5
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'];
OpenPOWER on IntegriCloud