implement proxy backend features

This commit is contained in:
yggverse 2025-07-24 06:25:01 +03:00
parent 77ee4aa78c
commit 4c305f967f
10 changed files with 281 additions and 1 deletions

View file

@ -98,6 +98,11 @@ 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,

View file

@ -67,6 +67,7 @@ impl Nex {
}
let socket = SocketClient::new();
socket.set_proxy_resolver(self.page.profile.proxy.matches(&uri).as_ref());
socket.set_protocol(SocketProtocol::Tcp);
socket.set_timeout(30); // @TODO optional