mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
security/netbird: fix setupKey passing for #5452
This commit is contained in:
parent
0798cde904
commit
842ec4b972
2 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue