diff --git a/cmd/syncthing/gui.go b/cmd/syncthing/gui.go index cbf2da763..e46cd8039 100644 --- a/cmd/syncthing/gui.go +++ b/cmd/syncthing/gui.go @@ -571,6 +571,10 @@ func restGetEvents(w http.ResponseWriter, r *http.Request) { } func restGetUpgrade(w http.ResponseWriter, r *http.Request) { + if noUpgrade { + http.Error(w, upgrade.ErrUpgradeUnsupported.Error(), 500) + return + } rel, err := upgrade.LatestRelease(strings.Contains(Version, "-beta")) if err != nil { http.Error(w, err.Error(), 500)