mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
add read limit to help reduce malicious communication
This commit is contained in:
parent
807df99d9a
commit
e9c1ab475f
@ -23,6 +23,7 @@ func Status(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
defer conn.Close()
|
||||
conn.SetReadLimit(APP_BODYLIMIT)
|
||||
|
||||
// receive announce
|
||||
t, m, res := conn.ReadMessage()
|
||||
|
Loading…
Reference in New Issue
Block a user