Disabled speedtest in standalone mode (#1278)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2021-12-01 18:47:29 -06:00
committed by GitHub
parent 65dcdc674a
commit 4fb8c2f684
8 changed files with 385 additions and 284 deletions

View File

@@ -116,10 +116,6 @@ func (c wsConn) readMessage() (messageType int, p []byte, err error) {
// on the path.
// Request should come like ws://<host>:<port>/ws/<api>
func serveWS(w http.ResponseWriter, req *http.Request) {
upgrader.CheckOrigin = func(r *http.Request) bool {
return true
}
// Perform authentication before upgrading to a Websocket Connection
// authenticate WS connection with Console
session, err := auth.GetClaimsFromTokenInRequest(req)