diff --git a/cmd/syncthing/gui.go b/cmd/syncthing/gui.go index 2b0b2384..821cada1 100644 --- a/cmd/syncthing/gui.go +++ b/cmd/syncthing/gui.go @@ -190,7 +190,7 @@ func restGetSystem(w http.ResponseWriter) { res["goroutines"] = runtime.NumGoroutine() res["alloc"] = m.Alloc res["sys"] = m.Sys - if discoverer != nil { + if cfg.Options.GlobalAnnEnabled && discoverer != nil { res["extAnnounceOK"] = discoverer.ExtAnnounceOK() } cpuUsageLock.RLock()