fix(proxy): configure proxy agent connection limits and IPv4 support (#2303)

* fix: configure axios proxy agent socket limits to prevent connection leaks

Add socket pool configuration to HttpProxyAgent and HttpsProxyAgent to
prevent connection leaks.

fix #2297

* fix(proxy): pass forceIpv4First option to custom proxy agent

* fix(proxy): add connection limits and IPv4 support to undici agents
This commit is contained in:
fallenbagel
2026-01-20 16:37:41 +05:00
committed by GitHub
parent bb2120c14d
commit dbd5935ade
2 changed files with 23 additions and 8 deletions

View File

@@ -97,7 +97,10 @@ app
// Register HTTP proxy
if (settings.network.proxy.enabled) {
await createCustomProxyAgent(settings.network.proxy);
await createCustomProxyAgent(
settings.network.proxy,
settings.network.forceIpv4First
);
}
// Migrate library types