Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for quic v1 #14

Merged
merged 3 commits into from
Feb 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/IpfsCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

<!-- https://semver.org/spec/v2.0.0.html -->
<Version>0.0.2</Version>
<Version>0.0.3</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>

<!-- Nuget specs -->
Expand Down
7 changes: 7 additions & 0 deletions src/NetworkProtocol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ static NetworkProtocol()
NetworkProtocol.Register<P2pNetworkProtocol>();
NetworkProtocol.RegisterAlias<IpfsNetworkProtocol>();
NetworkProtocol.Register<QuicNetworkProtocol>();
NetworkProtocol.Register<QuicV1NetworkProtocol>();
NetworkProtocol.Register<HttpNetworkProtocol>();
NetworkProtocol.Register<HttpsNetworkProtocol>();
NetworkProtocol.Register<DccpNetworkProtocol>();
Expand Down Expand Up @@ -397,6 +398,12 @@ class QuicNetworkProtocol : ValuelessNetworkProtocol
public override uint Code { get { return 460; } }
}

class QuicV1NetworkProtocol : ValuelessNetworkProtocol
{
public override string Name { get { return "quic-v1"; } }
public override uint Code { get { return 461; } }
}

class HttpNetworkProtocol : ValuelessNetworkProtocol
{
public override string Name { get { return "http"; } }
Expand Down