Don't show Offline badge when global disco is disabled (fixes #167)
This commit is contained in:
parent
ac74ee1468
commit
aff3cd01c5
@ -190,7 +190,7 @@ func restGetSystem(w http.ResponseWriter) {
|
|||||||
res["goroutines"] = runtime.NumGoroutine()
|
res["goroutines"] = runtime.NumGoroutine()
|
||||||
res["alloc"] = m.Alloc
|
res["alloc"] = m.Alloc
|
||||||
res["sys"] = m.Sys
|
res["sys"] = m.Sys
|
||||||
if discoverer != nil {
|
if cfg.Options.GlobalAnnEnabled && discoverer != nil {
|
||||||
res["extAnnounceOK"] = discoverer.ExtAnnounceOK()
|
res["extAnnounceOK"] = discoverer.ExtAnnounceOK()
|
||||||
}
|
}
|
||||||
cpuUsageLock.RLock()
|
cpuUsageLock.RLock()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user