diff --git a/main.go b/main.go index b91b0fe..aa46825 100644 --- a/main.go +++ b/main.go @@ -2287,7 +2287,38 @@ func apiAlarms(w http.ResponseWriter, r *http.Request) { func serveUI(w http.ResponseWriter, r *http.Request) { if r.URL.Path == "/" { - // Parse and execute template with config data + // Check license before serving the UI + if licenseMgr != nil { + status := licenseMgr.Status() + if status.Locked { + // Serve fallback activation page when locked + w.Header().Set("Content-Type", "text/html; charset=utf-8") + fmt.Fprintf(w, ` +
Machine fingerprint: %s
+License mode: %s
+Message: %s
+ + +