(legacy) zap ipsec_dump_mobile

This commit is contained in:
Ad Schellevis 2016-01-08 17:02:13 +01:00
parent a5ddf7f09d
commit 346991be55

View File

@ -349,30 +349,6 @@ function ipsec_dump_sad()
return $sad;
}
/*
* Return dump of mobile user list
*/
function ipsec_dump_mobile()
{
global $g, $custom_listtags;
$strongswan_leases_xml = '/tmp/strongswan_leases.xml';
$_gb = exec(sprintf('/usr/local/sbin/ipsec stroke leases > %s', $strongswan_leases_xml));
if (!file_exists($strongswan_leases_xml)) {
log_error(gettext("IPsec daemon seems to have issues or not running! Could not display mobile user stats!"));
return array();
}
$custom_listtags = array('lease', 'pool');
$response = parse_xml_config($strongswan_leases_xml, 'leases');
@unlink($strongswan_leases_xml);
unset($custom_listtags, $_gb);
return $response;
}
function ipsec_mobilekey_sort() {
global $config;