fix(enterprise/coderd): use websocketNetConn in workspaceProxyCoordinate to bind context (#9395)

This commit is contained in:
Mathias Fredriksson
2023-08-28 23:12:45 +03:00
committed by GitHub
parent 487bdc2e08
commit be47cc58ff
@@ -68,7 +68,7 @@ func (api *API) workspaceProxyCoordinate(rw http.ResponseWriter, r *http.Request
id := uuid.New()
sub := (*api.AGPL.TailnetCoordinator.Load()).ServeMultiAgent(id)
nc := websocket.NetConn(ctx, conn, websocket.MessageText)
ctx, nc := websocketNetConn(ctx, conn, websocket.MessageText)
defer nc.Close()
err = tailnet.ServeWorkspaceProxy(ctx, nc, sub)