mirror of
https://github.com/uqbar-dao/nectar.git
synced 2025-01-04 15:53:21 +03:00
Merge pull request #349 from Tenari/native-tls-feature-flag
native-tls so that wss:// type urls will work
This commit is contained in:
commit
e49221d70b
3
Cargo.lock
generated
3
Cargo.lock
generated
@ -5507,7 +5507,9 @@ checksum = "c83b561d025642014097b66e6c1bb422783339e0909e4429cde4749d1990bc38"
|
||||
dependencies = [
|
||||
"futures-util",
|
||||
"log",
|
||||
"native-tls",
|
||||
"tokio",
|
||||
"tokio-native-tls",
|
||||
"tungstenite 0.21.0",
|
||||
]
|
||||
|
||||
@ -5801,6 +5803,7 @@ dependencies = [
|
||||
"http 1.1.0",
|
||||
"httparse",
|
||||
"log",
|
||||
"native-tls",
|
||||
"rand 0.8.5",
|
||||
"sha1",
|
||||
"thiserror",
|
||||
|
@ -84,7 +84,7 @@ snow = { version = "0.9.5", features = ["ring-resolver"] }
|
||||
static_dir = "0.2.0"
|
||||
thiserror = "1.0"
|
||||
tokio = { version = "1.28", features = ["fs", "macros", "rt-multi-thread", "signal", "sync"] }
|
||||
tokio-tungstenite = "0.21.0"
|
||||
tokio-tungstenite = { version = "0.21.0", features = ["native-tls"] }
|
||||
url = "2.4.1"
|
||||
uuid = { version = "1.1.2", features = ["serde", "v4"] }
|
||||
warp = "0.3.5"
|
||||
|
@ -218,7 +218,14 @@ async fn connect_websocket(
|
||||
// Connect the WebSocket
|
||||
let ws_stream = match connect_async(req).await {
|
||||
Ok((ws_stream, _)) => ws_stream,
|
||||
Err(_) => {
|
||||
Err(e) => {
|
||||
let _ = print_tx
|
||||
.send(Printout {
|
||||
verbosity: 1,
|
||||
content: format!("http_client: underlying lib connection error {e:?}"),
|
||||
})
|
||||
.await;
|
||||
|
||||
return Err(HttpClientError::WsOpenFailed {
|
||||
url: url.to_string(),
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user