Reject requests from inactive clients
This commit is contained in:
1
main.go
1
main.go
@@ -317,6 +317,7 @@ func control(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
if !c.Active {
|
if !c.Active {
|
||||||
http.Error(w, "client is not active", http.StatusBadRequest)
|
http.Error(w, "client is not active", http.StatusBadRequest)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
rm.sendControlEvent(&controlEvent{
|
rm.sendControlEvent(&controlEvent{
|
||||||
|
|||||||
Reference in New Issue
Block a user