diff options
author | Ermal <eri@pfsense.org> | 2014-02-27 17:39:19 +0100 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-02-27 17:39:19 +0100 |
commit | c7fbdd6c8e9a248be5bf5dca57c038edfc6a7e16 (patch) | |
tree | 5bd176cccb61a1fc15ec0defcf27186fd78c6c7d /etc/inc/ipsec.inc | |
parent | d7d6e57a228de0d855b12b3bb7eb0f2a50aef108 (diff) | |
download | pfsense-c7fbdd6c8e9a248be5bf5dca57c038edfc6a7e16.zip pfsense-c7fbdd6c8e9a248be5bf5dca57c038edfc6a7e16.tar.gz |
Make the IPSec status page work with strongswan
Diffstat (limited to 'etc/inc/ipsec.inc')
-rw-r--r-- | etc/inc/ipsec.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index e411ef6..140db8b 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -466,7 +466,7 @@ function ipsec_smp_dump_status() { return; } - $fd = fopen("{$g['varrun_path']}/charon.xml", "w"); + $fd = @fsockopen("unix://{$g['varrun_path']}/charon.xml"); if (!$fd) { log_error("Could not read status from ipsec"); return; @@ -485,7 +485,7 @@ function ipsec_smp_dump_status() { @file_put_contents("{$g['tmp_path']}/smp_status.xml", $response); unset($response, $sread); - $custom_listtags = array('ikesa'); + $custom_listtags = array('ikesa', 'childsa', 'network'); $response = parse_xml_config("{$g['tmp_path']}/smp_status.xml", "message"); @unlink("{$g['tmp_path']}/smp_status.xml"); unset($custom_listtags); |