MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / updateProxyEnvVars

Function updateProxyEnvVars

src/utils/networkProxy.ts:321–328  ·  view source on GitHub ↗

* Update environment variables for proxy configuration. * global-agent reads from GLOBAL_AGENT_* environment variables.

(config: ProxyConfig)

Source from the content-addressed store, hash-verified

319 * global-agent reads from GLOBAL_AGENT_* environment variables.
320 */
321function updateProxyEnvVars(config: ProxyConfig): void {
322 if (config.serverUrl) {
323 // global-agent uses these environment variables
324 process.env.GLOBAL_AGENT_HTTP_PROXY = config.serverUrl
325 process.env.GLOBAL_AGENT_HTTPS_PROXY = config.serverUrl
326 process.env.GLOBAL_AGENT_NO_PROXY = "" // Proxy all requests
327 }
328}
329
330/**
331 * Check if a proxy is currently configured and active.

Callers 1

configureGlobalProxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected