mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 18:14:42 +00:00
VPN: WireGuard: Settings - API cleanup for 24.1 [2]
This commit is contained in:
parent
4dacd81ab0
commit
b5008a9cbf
@ -64,28 +64,6 @@ class ServiceController extends ApiMutableServiceControllerBase
|
||||
return ['result' => 'ok'];
|
||||
}
|
||||
|
||||
/**
|
||||
* show wireguard config
|
||||
* XXX: remove in 24.1
|
||||
* @return array
|
||||
*/
|
||||
public function showconfAction()
|
||||
{
|
||||
$response = (new Backend())->configdRun("wireguard showconf");
|
||||
return array("response" => $response);
|
||||
}
|
||||
|
||||
/**
|
||||
* show wireguard handshakes
|
||||
* XXX: remove in 24.1
|
||||
* @return array
|
||||
*/
|
||||
public function showhandshakeAction()
|
||||
{
|
||||
$response = (new Backend())->configdRun("wireguard showhandshake");
|
||||
return array("response" => $response);
|
||||
}
|
||||
|
||||
/**
|
||||
* wg show all dump output
|
||||
* @return array
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user