MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isProxyConfigured

Function isProxyConfigured

packages/agent-core/src/utils/proxy.ts:117–119  ·  view source on GitHub ↗
(env: Env = process.env)

Source from the content-addressed store, hash-verified

115
116/** True when any HTTP(S) or SOCKS proxy variable is set to a usable value. */
117export function isProxyConfigured(env: Env = process.env): boolean {
118 return hasHttpProxy(env) || resolveSocksProxy(env) !== undefined;
119}
120
121/**
122 * The effective `NO_PROXY` with loopback hosts guaranteed present so local

Callers 1

proxy.test.tsFile · 0.90

Calls 2

hasHttpProxyFunction · 0.85
resolveSocksProxyFunction · 0.85

Tested by

no test coverage detected