mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-11-26 17:13:54 +01:00
http: provide proxy on node client creation (#738)
This commit is contained in:
@@ -200,9 +200,10 @@ impl HttpSlateSender {
|
||||
let client = if !self.use_socks {
|
||||
Client::new()
|
||||
} else {
|
||||
Client::with_socks_proxy(
|
||||
Client::with_proxy(
|
||||
self.socks_proxy_addr
|
||||
.ok_or_else(|| ClientError::Internal("No socks proxy address set".into()))?,
|
||||
"socks5h://",
|
||||
)
|
||||
}
|
||||
.map_err(|_| ClientError::Internal("Unable to create http client".into()))?;
|
||||
|
||||
Reference in New Issue
Block a user