diff --git a/src/utils/proxy/http.js b/src/utils/proxy/http.js index 1a22a7f71..5db97c60a 100644 --- a/src/utils/proxy/http.js +++ b/src/utils/proxy/http.js @@ -111,7 +111,7 @@ export async function cachedRequest(url, duration = 5, ua = "homepage") { export async function httpProxy(url, params = {}) { const constructedUrl = new URL(url); const disableIpv6 = process.env.HOMEPAGE_PROXY_DISABLE_IPV6 === "true"; - const agentOptions = disableIpv6 ? { family: 4, autoSelectFamily: false } : {}; + const agentOptions = disableIpv6 ? { family: 4, autoSelectFamily: false } : { autoSelectFamilyAttemptTimeout: 500 }; let request = null; if (constructedUrl.protocol === "https:") {