@samitouri / QOSami-HFS / commits / db5013a1

fix: "spawn UNKNOWN" error on some Windows machines

Massimo Melina committed Jul 13, 2026 at 16:30 UTC db5013a1c4c999d9383752411bdaa3d912fd0422
1 file changed +1
src/outboundProxy.ts
+1
@@ -25,6 +25,7 @@ configReady.then(async (startedWithoutConfig) => {
25 if (!IS_WINDOWS || !startedWithoutConfig) return
26 // try to read Windows system setting for proxy
27 const out = await reg('query', 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings')
28 + .catch(() => '')
29 if (!Number(/ProxyEnable\s+\w+\s+(.+)/.exec(out)?.[1])) return
30 const read = /ProxyServer\s+\w+\s+(.+)/.exec(out)?.[1]
31 if (!read) return