From 48ddd7ea8624a663f0f85102506ede12a1d8c91b Mon Sep 17 00:00:00 2001 From: Emilien <4016501+unixfox@users.noreply.github.com> Date: Sat, 8 Mar 2025 20:58:34 +0100 Subject: [PATCH] fix: don't use http proxy when sending requests to companion --- src/invidious/yt_backend/connection_pool.cr | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/invidious/yt_backend/connection_pool.cr b/src/invidious/yt_backend/connection_pool.cr index c41cfd0a..0daed46c 100644 --- a/src/invidious/yt_backend/connection_pool.cr +++ b/src/invidious/yt_backend/connection_pool.cr @@ -59,14 +59,12 @@ struct CompanionConnectionPool @pool = DB::Pool(HTTP::Client).new(options) do companion = CONFIG.invidious_companion.sample - next make_client(companion.private_url, force_resolve: true) + next make_client(companion.private_url, use_http_proxy: false) end end def client(&) conn = pool.checkout - # Proxy needs to be reinstated every time we get a client from the pool - conn.proxy = make_configured_http_proxy_client() if CONFIG.http_proxy begin response = yield conn @@ -74,7 +72,7 @@ struct CompanionConnectionPool conn.close companion = CONFIG.invidious_companion.sample - conn = make_client(companion.private_url, force_resolve: true) + conn = make_client(companion.private_url, use_http_proxy: false) response = yield conn ensure