Bypass HTTP proxies for local JS gRPC clients (#65634)

This commit is contained in:
Grzegorz Zdunek
2026-04-17 12:13:39 +00:00
committed by GitHub
parent 68cb8a2af2
commit a5ff5dfe2b
3 changed files with 9 additions and 0 deletions
@@ -930,6 +930,9 @@ async function setUpTshdClients({
host: tshdAddress,
channelCredentials: creds,
interceptors: [loggingInterceptor(new Logger('tshd'))],
// This gRPC client talks to a localhost endpoint on Windows.
// Do not route it through HTTP proxies.
clientOptions: { 'grpc.enable_http_proxy': 0 },
});
return {
terminalService: new TerminalServiceClient(transport),
+3
View File
@@ -70,6 +70,9 @@ async function getElectronGlobals(): Promise<ElectronGlobals> {
host: addresses.tsh,
channelCredentials: credentials.tshd,
interceptors: [loggingInterceptor(new Logger('tshd'))],
// This gRPC client talks to a localhost endpoint on Windows.
// Do not route it through HTTP proxies.
clientOptions: { 'grpc.enable_http_proxy': 0 },
});
const tshClient = withoutInsecureTshdMethods(createTshdClient(tshdTransport));
const vnetClient = createVnetClient(tshdTransport);
@@ -33,6 +33,9 @@ export function createPtyHostClient(
const transport = new GrpcTransport({
host: address,
channelCredentials: credentials,
// This gRPC client talks to a localhost endpoint on Windows.
// Do not route it through HTTP proxies.
clientOptions: { 'grpc.enable_http_proxy': 0 },
});
const client = new GrpcClient(transport);