Skip to content
Merged
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
7 changes: 7 additions & 0 deletions src/Servers/Kestrel/samples/Http3SampleApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ public static void Main(string[] args)
listenOptions.Protocols = HttpProtocols.Http1AndHttp2;
});

// On a machine that supports IPv6, msquic will resolve `localhost` to `::1`, which `IPAddress.Any` will not accept.
// (To make it work, you'd need to use `IPv6Any`, as `ListenAnyIP` does.) As a result, a client built on msquic,
// e.g. `HttpClient` on Windows, will not be able to make HTTP/3.0 requests to `localhost:5001`. HTTP/1.x and
// HTTP/2.0 will still work.
// Example: https://github.com/dotnet/runtime/issues/108259
// msquic: https://github.com/microsoft/msquic/issues/1181 (resolve both)
// System.Net.Quic: https://github.com/dotnet/runtime/issues/82404 (improve consistency with sockets)
options.Listen(IPAddress.Any, 5001, listenOptions =>
{
listenOptions.UseHttps();
Expand Down
Loading