From 4bef809bd031f0aa3d55963e57a82d988fd2d45a Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Fri, 20 Oct 2023 17:54:58 +0200 Subject: [PATCH] VPN: WireGuard - fix wireguard group registration, as our reconfigureAction() is custom, we can not use invokeInterfaceRegistration() here. --- .../OPNsense/Wireguard/Api/ServiceController.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Wireguard/Api/ServiceController.php b/src/opnsense/mvc/app/controllers/OPNsense/Wireguard/Api/ServiceController.php index 1812f83fb..eab399815 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/Wireguard/Api/ServiceController.php +++ b/src/opnsense/mvc/app/controllers/OPNsense/Wireguard/Api/ServiceController.php @@ -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');