Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/client-core/src/init/websockets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::net::SocketAddr;
pub(crate) async fn connect_async(
endpoint: &str,
) -> Result<(WebSocketStream<MaybeTlsStream<TcpStream>>, Response), ClientCoreError> {
let resolver = HickoryDnsResolver::default();
let resolver = HickoryDnsResolver::new();
let uri = Url::parse(endpoint).map_err(|_| ClientCoreError::InvalidUrl(endpoint.to_owned()))?;
let port: u16 = uri.port_or_known_default().unwrap_or(443);

Expand Down
2 changes: 1 addition & 1 deletion common/client-libs/gateway-client/src/client/websockets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub(crate) async fn connect_async_with_hickory(
) -> Result<(WebSocketStream<MaybeTlsStream<TcpStream>>, Response), GatewayClientError> {
use tokio::net::TcpSocket;

let resolver = HickoryDnsResolver::default();
let resolver = HickoryDnsResolver::new();
let uri =
Url::parse(endpoint).map_err(|_| GatewayClientError::InvalidUrl(endpoint.to_owned()))?;
let port: u16 = uri.port_or_known_default().unwrap_or(443);
Expand Down
1 change: 1 addition & 0 deletions common/http-api-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ nym-network-defaults = { workspace = true, optional = true }
nym-http-api-client-macro = { workspace = true }

[target."cfg(not(target_arch = \"wasm32\"))".dependencies]
arc-swap = { workspace = true }
h2 = { workspace = true }
hickory-resolver = { workspace = true, features = ["https-ring", "tls-ring", "webpki-roots"] }

Expand Down
Loading
Loading