Skip to content

Commit 159b3ae

Browse files
committed
Merge branch 'main' of github.com:/coder/coder into dk/prebuilds
2 parents 473d53a + d50e846 commit 159b3ae

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

coderd/workspaceagents.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,7 @@ func (api *API) workspaceAgentClientCoordinate(rw http.ResponseWriter, r *http.R
907907
}
908908

909909
// This is used by Enterprise code to control the functionality of this route.
910+
// Namely, disabling the route using `CODER_BROWSER_ONLY`.
910911
override := api.WorkspaceClientCoordinateOverride.Load()
911912
if override != nil {
912913
overrideFunc := *override
@@ -1676,6 +1677,16 @@ func (api *API) workspaceAgentsExternalAuthListen(ctx context.Context, rw http.R
16761677
func (api *API) tailnetRPCConn(rw http.ResponseWriter, r *http.Request) {
16771678
ctx := r.Context()
16781679

1680+
// This is used by Enterprise code to control the functionality of this route.
1681+
// Namely, disabling the route using `CODER_BROWSER_ONLY`.
1682+
override := api.WorkspaceClientCoordinateOverride.Load()
1683+
if override != nil {
1684+
overrideFunc := *override
1685+
if overrideFunc != nil && overrideFunc(rw) {
1686+
return
1687+
}
1688+
}
1689+
16791690
version := "2.0"
16801691
qv := r.URL.Query().Get("version")
16811692
if qv != "" {

0 commit comments

Comments
 (0)