MCPcopy Index your code
hub / github.com/coder/code-server / proxyEnabled

Function proxyEnabled

src/node/http.ts:93–95  ·  view source on GitHub ↗
(req: express.Request)

Source from the content-addressed store, hash-verified

91 * Return true if proxy is enabled.
92 */
93export const proxyEnabled = (req: express.Request): boolean => {
94 return !req.args["disable-proxy"]
95}
96
97/**
98 * Throw an error if not authorized. Call `next` if provided.

Callers 1

ensureProxyEnabledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected