From 30bc15cfdc0432dc57dbc80d50ca2430f9e660c1 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Fri, 27 Feb 2009 00:18:46 -0600 Subject: fix display of ipsec tunnel status when using DNS entries for the endpoints --- etc/inc/ipsec.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.1