Added config flag to display Users
This commit is contained in:
parent
ab5939eb9d
commit
f91081b93f
@ -7,6 +7,7 @@
|
||||
},
|
||||
"unifi": {
|
||||
"enabled": false,
|
||||
"displayusers": true,
|
||||
"APIUrl": "https://unifi.freifunk-troisdorf.de:8443",
|
||||
"user": "APIuser",
|
||||
"password": "PASSWORD",
|
||||
|
2
main.go
2
main.go
@ -110,7 +110,7 @@ func processUcAPIs() ([]node, []link) {
|
||||
}
|
||||
var model = lookupModels(currentDevice.Model)
|
||||
var clients = currentDevice.Users
|
||||
if conf.Meshviewer.Enabled == false {
|
||||
if conf.Unifi.DisplayUsers == false {
|
||||
clients = 0
|
||||
}
|
||||
nodes = append(nodes, node{
|
||||
|
Loading…
Reference in New Issue
Block a user