We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e62b82a commit c8dc49eCopy full SHA for c8dc49e
src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/Internal/MsQuicAddressHelpers.cs
@@ -24,7 +24,7 @@ internal static unsafe IPEndPoint INetToIPEndPoint(ref SOCKADDR_INET inetAddress
24
internal static unsafe SOCKADDR_INET IPEndPointToINet(IPEndPoint endpoint)
25
{
26
SOCKADDR_INET socketAddress = default;
27
- if (endpoint.Address != IPAddress.Any && endpoint.Address != IPAddress.IPv6Any)
+ if (!endpoint.Address.Equals(IPAddress.Any) && !endpoint.Address.Equals(IPAddress.IPv6Any))
28
29
switch (endpoint.Address.AddressFamily)
30
0 commit comments