mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +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
|
return
|
||||||
}
|
}
|
||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
|
conn.SetReadLimit(APP_BODYLIMIT)
|
||||||
|
|
||||||
// receive announce
|
// receive announce
|
||||||
t, m, res := conn.ReadMessage()
|
t, m, res := conn.ReadMessage()
|
||||||
|
Loading…
Reference in New Issue
Block a user