Reject requests from inactive clients

This commit is contained in:
Ian Gulliver
2020-11-25 22:17:29 +00:00
parent d5bfc59ab8
commit d7495aa83b

View File

@@ -317,6 +317,7 @@ func control(w http.ResponseWriter, r *http.Request) {
if !c.Active {
http.Error(w, "client is not active", http.StatusBadRequest)
return
}
rm.sendControlEvent(&controlEvent{