security/netbird: sync with master

This commit is contained in:
Franco Fichtner 2026-05-22 10:34:09 +02:00
parent e2e4ecca1a
commit 53896e6361
3 changed files with 7 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

@ -24,3 +24,4 @@ Plugin Changelog
* Added netbird_devices() so that wt0 is a volatile interface (contributed by Myah Mitchell)
* Added IP Mapping option and authentication banner (contributed by Konstantinos Spartalis)
* Fix setupKey usage after UpdateOnlyTextField introduction

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