Skip to content

Commit

Permalink
fix(interop): use webrtc-direct as browser-to-server identifier
Browse files Browse the repository at this point in the history
See multiformats/multiaddr#150 (comment) for context on the rename.

Pull-Request: #3781.
  • Loading branch information
mxinden authored Apr 12, 2023
1 parent 9eb3030 commit 0d5cac0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion interop-tests/ping-version.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"ws",
"tcp",
"quic-v1",
"webrtc"
"webrtc-direct"
],
"secureChannels": [
"tls",
Expand Down
6 changes: 3 additions & 3 deletions interop-tests/src/bin/ping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async fn main() -> Result<()> {
.boxed(),
format!("/ip4/{ip}/tcp/0/ws"),
),
Transport::Webrtc => (
Transport::WebRtcDirect => (
webrtc::tokio::Transport::new(
local_key,
webrtc::tokio::Certificate::generate(&mut rand::thread_rng())?,
Expand Down Expand Up @@ -213,7 +213,7 @@ fn muxer_protocol_from_env() -> Result<Either<yamux::YamuxConfig, mplex::MplexCo
pub enum Transport {
Tcp,
QuicV1,
Webrtc,
WebRtcDirect,
Ws,
}

Expand All @@ -224,7 +224,7 @@ impl FromStr for Transport {
Ok(match s {
"tcp" => Self::Tcp,
"quic-v1" => Self::QuicV1,
"webrtc" => Self::Webrtc,
"webrtc-direct" => Self::WebRtcDirect,
"ws" => Self::Ws,
other => bail!("unknown transport {other}"),
})
Expand Down

0 comments on commit 0d5cac0

Please sign in to comment.