Skip to content

Commit 90aa4d3

Browse files
authored
fix: align proxy detection with Node.js CLI behavior in Windows (#562)
1 parent 9da8ac4 commit 90aa4d3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

runtimes/runtimes/util/standalone/experimentalProxyUtil.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,9 @@ export class ProxyConfigManager {
8989
})();
9090
`
9191

92-
const raw = execFileSync(process.execPath, [], {
93-
input: snippet,
92+
const raw = execFileSync(process.execPath, ['-e', snippet], {
9493
encoding: 'utf8',
95-
stdio: ['pipe', 'pipe', 'inherit'],
94+
stdio: ['ignore', 'pipe', 'inherit'],
9695
})
9796

9897
console.debug(`os-proxy-config output: ${raw}`)

0 commit comments

Comments
 (0)