Skip to content

Commit 0d5cac0

Browse files
authored
fix(interop): use webrtc-direct as browser-to-server identifier
See multiformats/multiaddr#150 (comment) for context on the rename. Pull-Request: #3781.
1 parent 9eb3030 commit 0d5cac0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

interop-tests/ping-version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"ws",
66
"tcp",
77
"quic-v1",
8-
"webrtc"
8+
"webrtc-direct"
99
],
1010
"secureChannels": [
1111
"tls",

interop-tests/src/bin/ping.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async fn main() -> Result<()> {
7070
.boxed(),
7171
format!("/ip4/{ip}/tcp/0/ws"),
7272
),
73-
Transport::Webrtc => (
73+
Transport::WebRtcDirect => (
7474
webrtc::tokio::Transport::new(
7575
local_key,
7676
webrtc::tokio::Certificate::generate(&mut rand::thread_rng())?,
@@ -213,7 +213,7 @@ fn muxer_protocol_from_env() -> Result<Either<yamux::YamuxConfig, mplex::MplexCo
213213
pub enum Transport {
214214
Tcp,
215215
QuicV1,
216-
Webrtc,
216+
WebRtcDirect,
217217
Ws,
218218
}
219219

@@ -224,7 +224,7 @@ impl FromStr for Transport {
224224
Ok(match s {
225225
"tcp" => Self::Tcp,
226226
"quic-v1" => Self::QuicV1,
227-
"webrtc" => Self::Webrtc,
227+
"webrtc-direct" => Self::WebRtcDirect,
228228
"ws" => Self::Ws,
229229
other => bail!("unknown transport {other}"),
230230
})

0 commit comments

Comments
 (0)