Skip to content

Commit 523be54

Browse files
committed
Enable WebSockets TLS by default
1 parent bb8f2af commit 523be54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ eyre = "0.6.5"
3838

3939
futures = "0.3.12"
4040
async-std = { version = "1.9.0", features = ["attributes", "unstable"] }
41-
async-tungstenite = { version = "0.13.1", features = ["async-std-runtime"] }
41+
async-tungstenite = { version = "0.13.1", features = ["async-std-runtime", "async-tls"] }
4242

4343
# for "bin" feature
4444
clap = { version = "2.33.3", optional = true }

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ use std::str;
4444
/// Some mailbox server you might use.
4545
///
4646
/// Two applications that want to communicate with each other *must* use the same mailbox server.
47-
pub const DEFAULT_MAILBOX_SERVER: &str = "ws://relay.magic-wormhole.io:4000/v1";
47+
pub const DEFAULT_MAILBOX_SERVER: &str = "wss://relay.magic-wormhole.io:4000/v1";
4848

4949
#[derive(Debug, thiserror::Error)]
5050
#[non_exhaustive]

0 commit comments

Comments
 (0)