mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-12 02:15:01 +00:00
Bypass HTTP proxies for local JS gRPC clients (#65634)
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user