fix: removed a redundant request testing outbound_proxy
Massimo Melina committed
Nov 12, 2025 at 23:27 UTC
cf31ea39351cc1245999d8219663f75fa7ef0866
1 file changed
+2
-1
src/outboundProxy.ts
+2
-1
@@ -11,7 +11,8 @@ const outboundProxy = defineConfig(CFG.outbound_proxy, '', v => {
11
httpStream.defaultProxy = v
12
if (!v || process.env.HFS_SKIP_PROXY_TEST) return
13
const test = 'https://google.com'
14
- httpString(test).catch(e =>
14
+ console.debug("testing proxy using", test)
15
+ httpString(test, { noRedirect: true }).catch(e =>
16
console.error(`proxy failed for ${test} : ${e?.errors?.[0] || e}`)) // `.errors` in case of AggregateError
17
}
18
catch {