mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/netbird: small 'make glint' update
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ class AuthenticationController extends ApiMutableModelControllerBase
|
||||
if (!empty($setupKey) && $setupKey !== $defaultKey) {
|
||||
$visiblePart = substr($setupKey, 0, 4);
|
||||
$maskedKey = $visiblePart . str_repeat('*', max(4, strlen($setupKey) - 4));
|
||||
}else{
|
||||
} else {
|
||||
$maskedKey = $defaultKey;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ use OPNsense\Base\BaseModel;
|
||||
|
||||
class Settings extends BaseModel
|
||||
{
|
||||
public function syncConfig($target='/var/db/netbird/config.json')
|
||||
public function syncConfig($target = '/var/db/netbird/config.json')
|
||||
{
|
||||
$config = json_decode(file_get_contents($target), true);
|
||||
if (!is_array($config)) {
|
||||
|
||||
@@ -201,7 +201,7 @@
|
||||
ajaxGet('/api/netbird/status/status', {}, (data) => {
|
||||
const status = getPeerConnectionStatus(data);
|
||||
const details = getPeersDetail(data);
|
||||
|
||||
|
||||
const isConnected = data.management?.connected === true;
|
||||
$peersDetailContainer.toggleClass("hidden", !isConnected);
|
||||
const renderPreTable = (content, maxHeight = null) => {
|
||||
@@ -278,4 +278,4 @@
|
||||
<div class="table-responsive" id="packages"></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user