VPN: WireGuard - fix wireguard group registration, as our reconfigureAction() is custom, we can not use invokeInterfaceRegistration() here.

This commit is contained in:
Ad Schellevis 2023-10-20 17:54:58 +02:00
parent c2d07aeef6
commit 4bef809bd0

View File

@ -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');