summaryrefslogtreecommitdiffstats
path: root/etc/inc/ipsec.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2009-01-16 08:30:05 +0000
committerSeth Mos <seth.mos@xs4all.nl>2009-01-16 08:30:05 +0000
commitc7ce85b5bcca5f57abc14a0abf6c4935576bce74 (patch)
treed10eed47226b49c5bd3115b6507a3a331b75610f /etc/inc/ipsec.inc
parent9f14066f78db5be5b3b4b705272ac41f234e9579 (diff)
downloadpfsense-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.inc2
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);
OpenPOWER on IntegriCloud