6 references to IsValid
System.Net.HttpListener (1)
System\Net\ServiceNameStore.cs (1)
275IPAddress.IsValid(hostname))
System.Net.Primitives (1)
System\Net\Cookie.cs (1)
349&& !IPAddress.IsValid(host); // If host is an IP address, there should be an exact match.
System.Net.Quic (2)
System\Net\Quic\QuicConnection.cs (2)
426string sni = (IPAddress.IsValid(options.ClientAuthenticationOptions.TargetHost) ? null : options.ClientAuthenticationOptions.TargetHost) ?? host ?? string.Empty; 461if (IPAddress.IsValid(targetHost))
System.Net.Security (2)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
361IPAddress.IsValid(sslAuthenticationOptions.TargetHost) || 437if (!string.IsNullOrEmpty(sslAuthenticationOptions.TargetHost) && !IPAddress.IsValid(sslAuthenticationOptions.TargetHost))