From 4de753e52d8bbc732f23f90dd77df1707fbc3912 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 15 Jun 2017 09:56:33 -0400 Subject: Change IPsec widget tunnel status to handle newer strongSwan childid format. Fixes #7499 --- src/usr/local/www/widgets/widgets/ipsec.widget.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/usr/local/www/widgets') diff --git a/src/usr/local/www/widgets/widgets/ipsec.widget.php b/src/usr/local/www/widgets/widgets/ipsec.widget.php index 1c66153..ff577b7 100644 --- a/src/usr/local/www/widgets/widgets/ipsec.widget.php +++ b/src/usr/local/www/widgets/widgets/ipsec.widget.php @@ -81,7 +81,8 @@ if ($_REQUEST && $_REQUEST['ajax']) { foreach ($ipsec_status as $id => $ikesa) { if (isset($ikesa['child-sas'])) { foreach ($ikesa['child-sas'] as $childid => $childsa) { - if ($ikeid == $childid) { + list($childcid, $childsid) = explode('-', $childid, 2); + if ($ikeid == $childcid) { $found = true; break; } -- cgit v1.1