diff --git a/src/Servers/Kestrel/Transport.MsQuic/src/MsQuicConnectionFactory.cs b/src/Servers/Kestrel/Transport.MsQuic/src/MsQuicConnectionFactory.cs index 4d6f45c889..98d585935f 100644 --- a/src/Servers/Kestrel/Transport.MsQuic/src/MsQuicConnectionFactory.cs +++ b/src/Servers/Kestrel/Transport.MsQuic/src/MsQuicConnectionFactory.cs @@ -47,7 +47,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.MsQuic await StartAsync(); } - var connection = await _session.ConnectionOpenAsync(endPoint as IPEndPoint, _transportContext); + var connection = await _session.ConnectionOpenAsync(ipEndPoint, _transportContext); return connection; }