diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2009-01-16 08:30:05 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2009-01-16 08:30:05 +0000 |
commit | c7ce85b5bcca5f57abc14a0abf6c4935576bce74 (patch) | |
tree | d10eed47226b49c5bd3115b6507a3a331b75610f /etc/inc/ipsec.inc | |
parent | 9f14066f78db5be5b3b4b705272ac41f234e9579 (diff) | |
download | pfsense-c7ce85b5bcca5f57abc14a0abf6c4935576bce74.zip pfsense-c7ce85b5bcca5f57abc14a0abf6c4935576bce74.tar.gz |
Correctly return phase2 status for tunnels with hostnames
Diffstat (limited to 'etc/inc/ipsec.inc')
-rw-r--r-- | etc/inc/ipsec.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index 2328e24..0d4c883 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -250,7 +250,7 @@ function ipsec_phase1_status(& $ph1ent) { function ipsec_phase2_status(& $spd,& $sad,& $ph1ent,& $ph2ent) { $loc_ip = ipsec_get_phase1_src($ph1ent); - $rmt_ip = $ph1ent['remote-gateway']; + $rmt_ip = ipsec_get_phase1_dst($ph1ent); $loc_id = ipsec_idinfo_to_cidr($ph2ent['localid'],true); $rmt_id = ipsec_idinfo_to_cidr($ph2ent['remoteid'],true); |