mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
VPN: WireGuard - fix wireguard group registration, as our reconfigureAction() is custom, we can not use invokeInterfaceRegistration() here.
This commit is contained in:
parent
c2d07aeef6
commit
4bef809bd0
@ -46,15 +46,6 @@ class ServiceController extends ApiMutableServiceControllerBase
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'wireguard';
|
||||
|
||||
/**
|
||||
* hook group interface registration on reconfigure
|
||||
* @return bool
|
||||
*/
|
||||
protected function invokeInterfaceRegistration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
@ -66,6 +57,7 @@ class ServiceController extends ApiMutableServiceControllerBase
|
||||
|
||||
$this->sessionClose();
|
||||
$backend = new Backend();
|
||||
$backend->configdRun('interface invoke registration');
|
||||
$backend->configdRun('template reload ' . escapeshellarg(static::$internalServiceTemplate));
|
||||
$backend->configdpRun('wireguard configure');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user