Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
346991be
Commit
346991be
authored
Jan 08, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) zap ipsec_dump_mobile
parent
a5ddf7f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
ipsec.inc
src/etc/inc/ipsec.inc
+0
-24
No files found.
src/etc/inc/ipsec.inc
View file @
346991be
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment