mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
ipsec: Cleanup this->sessionClose
This commit is contained in:
parent
b5d39d1591
commit
9cbb6f217b
@ -45,7 +45,6 @@ class SadController extends ApiControllerBase
|
||||
*/
|
||||
public function searchAction()
|
||||
{
|
||||
$this->sessionClose();
|
||||
$data = json_decode((new Backend())->configdRun('ipsec list sad'), true);
|
||||
$records = (!empty($data) && !empty($data['records'])) ? $data['records'] : [];
|
||||
|
||||
@ -106,7 +105,6 @@ class SadController extends ApiControllerBase
|
||||
public function deleteAction($id)
|
||||
{
|
||||
if ($this->request->isPost()) {
|
||||
$this->sessionClose();
|
||||
$data = json_decode((new Backend())-> configdpRun('ipsec saddelete', [$id]), true);
|
||||
if ($data) {
|
||||
$data['result'] = "ok";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user