MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / ProxyInfo

Method ProxyInfo

sdk/cliproxy/auth/types.go:416–428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

414}
415
416func (a *Auth) ProxyInfo() string {
417 if a == nil {
418 return ""
419 }
420 proxyStr := strings.TrimSpace(a.ProxyURL)
421 if proxyStr == "" {
422 return ""
423 }
424 if idx := strings.Index(proxyStr, "://"); idx > 0 {
425 return "via " + proxyStr[:idx] + " proxy"
426 }
427 return "via proxy"
428}
429
430// DisableCoolingOverride returns the auth scoped disable_cooling override when present.
431// The value is read from metadata key "disable_cooling" (or legacy "disable-cooling").

Callers 1

debugLogAuthSelectionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected