mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use get_failover_interface here to find appropriate interface. Ticket #4482
Conflicts: etc/inc/ipsec.inc
This commit is contained in:
parent
d8e4918f0a
commit
9c370fe6d3
@ -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'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user