diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-12-10 09:55:58 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-12-10 09:56:08 -0200 |
commit | c02acef2866f08662d62aa6f0ba73168e85dafc8 (patch) | |
tree | 1b42d39c6ee161a0d175c1852eb271bf1fdcb0ea /etc/inc/ipsec.inc | |
parent | e2a319f3ddabe9820be38ef173b1fb562e644c75 (diff) | |
download | pfsense-c02acef2866f08662d62aa6f0ba73168e85dafc8.zip pfsense-c02acef2866f08662d62aa6f0ba73168e85dafc8.tar.gz |
get_failover_interface() is already called inside get_interface_ip(v6), no need to call it twice. It should fix #4089
Diffstat (limited to 'etc/inc/ipsec.inc')
-rw-r--r-- | etc/inc/ipsec.inc | 6 |
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']; |