From 7087d8ef7caa82deeb51a4aecc8cef7737162a74 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 24 Jul 2025 07:59:31 +0300 Subject: [PATCH] move proxy setter to the request handler --- .../browser/window/tab/item/client/driver/gemini.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/browser/window/tab/item/client/driver/gemini.rs b/src/app/browser/window/tab/item/client/driver/gemini.rs index 3c48917b..6f172b0e 100644 --- a/src/app/browser/window/tab/item/client/driver/gemini.rs +++ b/src/app/browser/window/tab/item/client/driver/gemini.rs @@ -98,11 +98,6 @@ impl Gemini { is_snap_history: bool, ) { use ggemini::client::connection::request::{Mode, Request}; - - self.client - .socket - .set_proxy_resolver(self.page.profile.proxy.matches(&uri).as_ref()); - match uri.scheme().as_str() { "gemini" => handle( self, @@ -163,6 +158,11 @@ fn handle( .tofu .server_certificate(&uri, DEFAULT_PORT); let has_server_certificate = server_certificate.is_some(); + + this.client + .socket + .set_proxy_resolver(this.page.profile.proxy.matches(&uri).as_ref()); + this.client.request_async( request, Priority::DEFAULT,