diff options
author | Bill Marquette <bill.marquette@gmail.com> | 2009-02-27 00:18:46 -0600 |
---|---|---|
committer | Bill Marquette <bill.marquette@gmail.com> | 2009-02-27 00:18:46 -0600 |
commit | 30bc15cfdc0432dc57dbc80d50ca2430f9e660c1 (patch) | |
tree | 9bc3fcdc682a62854f50ddd57074f4bb12b89316 /etc/inc | |
parent | e7693c09249d6be294cbec2bf5682ba307e80ea6 (diff) | |
download | pfsense-30bc15cfdc0432dc57dbc80d50ca2430f9e660c1.zip pfsense-30bc15cfdc0432dc57dbc80d50ca2430f9e660c1.tar.gz |
fix display of ipsec tunnel status when using DNS entries for the endpoints
Diffstat (limited to 'etc/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 0d4c883..6e206b3 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 = ipsec_get_phase1_dst($ph1ent); + $rmt_ip = gethostbyname(ipsec_get_phase1_dst($ph1ent)); $loc_id = ipsec_idinfo_to_cidr($ph2ent['localid'],true); $rmt_id = ipsec_idinfo_to_cidr($ph2ent['remoteid'],true); |