Skip to content

Commit

Permalink
Add support for WebRTC-Direct transport in MultiAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Nov 16, 2024
1 parent 57dffd3 commit 26eca76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/NetworkProtocol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ static NetworkProtocol()
NetworkProtocol.Register<DnsAddrNetworkProtocol>();
NetworkProtocol.Register<WssNetworkProtocol>();
NetworkProtocol.Register<IpcidrNetworkProtocol>();
NetworkProtocol.Register<WebRtcDirectNetworkProtocol>();
}

/// <summary>
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 26eca76

Please sign in to comment.