diff --git a/security/netbird/Makefile b/security/netbird/Makefile index 68e48360d..daad61986 100644 --- a/security/netbird/Makefile +++ b/security/netbird/Makefile @@ -1,6 +1,6 @@ PLUGIN_NAME= netbird PLUGIN_VERSION= 1.3 -PLUGIN_REVISION= 1 +PLUGIN_REVISION= 2 PLUGIN_DEPENDS= netbird PLUGIN_COMMENT= Peer-to-peer VPN that seamlessly connects your devices PLUGIN_MAINTAINER= dev@netbird.io diff --git a/security/netbird/src/opnsense/mvc/app/controllers/OPNsense/Netbird/Api/AuthenticationController.php b/security/netbird/src/opnsense/mvc/app/controllers/OPNsense/Netbird/Api/AuthenticationController.php index 1e75efa08..55daf590c 100644 --- a/security/netbird/src/opnsense/mvc/app/controllers/OPNsense/Netbird/Api/AuthenticationController.php +++ b/security/netbird/src/opnsense/mvc/app/controllers/OPNsense/Netbird/Api/AuthenticationController.php @@ -77,10 +77,12 @@ class AuthenticationController extends ApiMutableModelControllerBase $backend->configdRun("netbird down"); } - $managementUrl = $mdl->managementUrl->__toString(); - $setupKey = $mdl->setupKey->__toString(); - $result = $backend->configdpRun("netbird up-setup-key", array($managementUrl, $setupKey)); + $result = $backend->configdpRun('netbird up-setup-key', [ + $mdl->managementUrl->getValue(), + $mdl->setupKey->getValue() + ]); + return ['result' => trim($result)]; }