From 26eca762d3baa93558b5c7c435e9af4202c76248 Mon Sep 17 00:00:00 2001 From: Arlo Date: Sat, 16 Nov 2024 22:41:08 +0000 Subject: [PATCH] Add support for WebRTC-Direct transport in MultiAddress --- src/NetworkProtocol.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/NetworkProtocol.cs b/src/NetworkProtocol.cs index 15a9f95e..87ad621a 100644 --- a/src/NetworkProtocol.cs +++ b/src/NetworkProtocol.cs @@ -53,6 +53,7 @@ static NetworkProtocol() NetworkProtocol.Register(); NetworkProtocol.Register(); NetworkProtocol.Register(); + NetworkProtocol.Register(); } /// @@ -434,6 +435,12 @@ internal class QuicV1NetworkProtocol : ValuelessNetworkProtocol public override uint Code => 465; } + internal class WebRtcDirectNetworkProtocol : ValuelessNetworkProtocol + { + public override string Name => "webrtc-direct"; + public override uint Code => 280; + } + internal class WebTransportNetworkProtocol : ValuelessNetworkProtocol { public override string Name => "webtransport";