http: provide proxy on node client creation (#738)

This commit is contained in:
ardocrat
2025-06-18 16:01:06 +01:00
committed by GitHub
parent b1ffe86a55
commit 930a44d456
3 changed files with 28 additions and 12 deletions
+2 -1
View File
@@ -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()))?;