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

Function restoreTlsVerificationOverride

src/utils/networkProxy.ts:72–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72function restoreTlsVerificationOverride(): void {
73 if (!tlsVerificationOverridden) {
74 return
75 }
76
77 if (typeof originalNodeTlsRejectUnauthorized === "string") {
78 process.env.NODE_TLS_REJECT_UNAUTHORIZED = originalNodeTlsRejectUnauthorized
79 } else {
80 delete process.env.NODE_TLS_REJECT_UNAUTHORIZED
81 }
82
83 tlsVerificationOverridden = false
84 originalNodeTlsRejectUnauthorized = undefined
85}
86
87function applyTlsVerificationOverride(config: ProxyConfig): void {
88 // Only relevant in debug mode with an active proxy.

Callers 2

initializeNetworkProxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected