Skip to content

Commit e59a220

Browse files
authored
fix: resolve Windows issue with system proxy detection (#560)
1 parent 0d04226 commit e59a220

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtimes/runtimes/util/standalone/experimentalProxyUtil.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import { NodeHttpHandler } from '@smithy/node-http-handler'
1313
import { readMacosCertificates, readLinuxCertificates, readWindowsCertificates } from './certificatesReaders'
1414
import { Telemetry } from '../../../server-interface'
1515
import { OperationalTelemetryProvider, TELEMETRY_SCOPES } from '../../operational-telemetry/operational-telemetry'
16-
import { execSync } from 'node:child_process'
1716
import { pathToFileURL } from 'node:url'
17+
import { execFileSync } from 'node:child_process'
1818

1919
export class ProxyConfigManager {
2020
/**
@@ -89,7 +89,7 @@ export class ProxyConfigManager {
8989
})();
9090
`
9191

92-
const raw = execSync(process.execPath, {
92+
const raw = execFileSync(process.execPath, [], {
9393
input: snippet,
9494
encoding: 'utf8',
9595
stdio: ['pipe', 'pipe', 'inherit'],

0 commit comments

Comments
 (0)