From d7495aa83bc46d604fb4fd659131cb6b446e6e02 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 25 Nov 2020 22:17:29 +0000 Subject: [PATCH] Reject requests from inactive clients --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 778d8d6..0fa92f7 100644 --- a/main.go +++ b/main.go @@ -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{