security/netbird: fix setupKey passing for #5452

This commit is contained in:
Franco Fichtner 2026-05-20 08:19:15 +02:00
parent 0798cde904
commit 842ec4b972
2 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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)];
}