mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
implement proxy backend features
This commit is contained in:
parent
77ee4aa78c
commit
4c305f967f
10 changed files with 281 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue