mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-08-30 00:12:01 +00:00
move proxy setter to the request handler
This commit is contained in:
parent
1302a89c44
commit
7087d8ef7c
@ -98,11 +98,6 @@ impl Gemini {
|
|||||||
is_snap_history: bool,
|
is_snap_history: bool,
|
||||||
) {
|
) {
|
||||||
use ggemini::client::connection::request::{Mode, Request};
|
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() {
|
match uri.scheme().as_str() {
|
||||||
"gemini" => handle(
|
"gemini" => handle(
|
||||||
self,
|
self,
|
||||||
@ -163,6 +158,11 @@ fn handle(
|
|||||||
.tofu
|
.tofu
|
||||||
.server_certificate(&uri, DEFAULT_PORT);
|
.server_certificate(&uri, DEFAULT_PORT);
|
||||||
let has_server_certificate = server_certificate.is_some();
|
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(
|
this.client.request_async(
|
||||||
request,
|
request,
|
||||||
Priority::DEFAULT,
|
Priority::DEFAULT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user