mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix: remove path-based port proxying (#4063)
This commit is contained in:
@ -38,12 +38,12 @@ func (api *API) workspaceAppsProxyPath(rw http.ResponseWriter, r *http.Request)
|
||||
chiPath = "/" + chiPath
|
||||
}
|
||||
|
||||
appName, port := httpapi.AppNameOrPort(chi.URLParam(r, "workspaceapp"))
|
||||
api.proxyWorkspaceApplication(proxyApplication{
|
||||
Workspace: workspace,
|
||||
Agent: agent,
|
||||
AppName: appName,
|
||||
Port: port,
|
||||
Workspace: workspace,
|
||||
Agent: agent,
|
||||
// We do not support port proxying for paths.
|
||||
AppName: chi.URLParam(r, "workspaceapp"),
|
||||
Port: 0,
|
||||
Path: chiPath,
|
||||
DashboardOnError: true,
|
||||
}, rw, r)
|
||||
|
Reference in New Issue
Block a user