File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { bootstrap as bootstrapGlobalAgent } from "global-agent";
1313import type { ProxyConfig } from "../../../config/zod-schema.proxy.js" ;
1414import { logInfo , logWarn } from "../../../logger.js" ;
1515import { isLoopbackIpAddress } from "../../../shared/net/ip.js" ;
16+ import { isLoopbackHost } from "../../../gateway/net.js" ;
1617import { forceResetGlobalDispatcher } from "../undici-global-dispatcher.js" ;
1718
1819export type ProxyHandle = {
@@ -371,7 +372,7 @@ function isGatewayLoopbackControlPlaneUrl(value: string): boolean {
371372 ) {
372373 return false ;
373374 }
374- return isLoopbackIpAddress ( url . hostname ) ;
375+ return isLoopbackHost ( url . hostname ) ;
375376}
376377
377378export function dangerouslyBypassManagedProxyForGatewayLoopbackControlPlane < T > (
@@ -389,7 +390,7 @@ export function dangerouslyBypassManagedProxyForGatewayLoopbackControlPlane<T>(
389390 savedProxyEnv [ key ] = process . env [ key ] ;
390391 delete process . env [ key ] ;
391392 }
392- const lowercaseKeys = [ "http_proxy" , "https_proxy" , " all_proxy"] ;
393+ const lowercaseKeys = [ "all_proxy" ] ;
393394 for ( const key of lowercaseKeys ) {
394395 savedProxyEnv [ key ] = process . env [ key ] ;
395396 delete process . env [ key ] ;
You can’t perform that action at this time.
0 commit comments