mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 13:03:45 +02:00
Don't list node as an active bridge if it's not authorized. (Wouldn't work anyway.)
This commit is contained in:
parent
c3cea55493
commit
4c3fb8cf10
1 changed files with 5 additions and 1 deletions
|
@ -473,7 +473,11 @@ function doNetconfRequest(message)
|
||||||
if (keys) {
|
if (keys) {
|
||||||
async.eachSeries(keys,function(key,nextKey) {
|
async.eachSeries(keys,function(key,nextKey) {
|
||||||
DB.hgetall(key,function(err,abr) {
|
DB.hgetall(key,function(err,abr) {
|
||||||
if ((abr)&&(abr.id)&&(abr.id.length === 10)&&(ztDbTrue(abr['activeBridge']))) {
|
if ( (abr) &&
|
||||||
|
(abr.id) &&
|
||||||
|
(abr.id.length === 10) &&
|
||||||
|
( (!ztDbTrue(network['private'])) || ztDbTrue(abr['authorized']) ) &&
|
||||||
|
(ztDbTrue(abr['activeBridge'])) ) {
|
||||||
if (activeBridges.length)
|
if (activeBridges.length)
|
||||||
activeBridges += ',';
|
activeBridges += ',';
|
||||||
activeBridges += abr.id;
|
activeBridges += abr.id;
|
||||||
|
|
Loading…
Add table
Reference in a new issue