mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
security/netbird: sync with master
This commit is contained in:
parent
e2e4ecca1a
commit
53896e6361
3 changed files with 7 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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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