mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
use previously constructed ProxyResolver object (prevent extra search operations)
This commit is contained in:
parent
1cbcd72c71
commit
b548fb16d3
3 changed files with 22 additions and 8 deletions
|
|
@ -162,7 +162,7 @@ fn handle(
|
|||
|
||||
this.client
|
||||
.socket
|
||||
.set_proxy_resolver(this.page.profile.proxy.matches(&url).as_ref());
|
||||
.set_proxy_resolver(this.page.navigation.request.proxy_resolver().as_ref());
|
||||
|
||||
this.client.request_async(
|
||||
request,
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ impl Nex {
|
|||
}
|
||||
|
||||
let socket = SocketClient::new();
|
||||
socket.set_proxy_resolver(self.page.profile.proxy.matches(&url).as_ref());
|
||||
socket.set_proxy_resolver(self.page.navigation.request.proxy_resolver().as_ref());
|
||||
socket.set_protocol(SocketProtocol::Tcp);
|
||||
socket.set_timeout(30); // @TODO optional
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue