Skip to content

Commit 364f027

Browse files
committed
Map unknown host name to unknown address family
1 parent 40607bc commit 364f027

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/DotNext/Net/Http/HttpEndPoint.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ private static int GetPort(Uri uri, out bool secure)
6666
{
6767
UriHostNameType.IPv4 => AddressFamily.InterNetwork,
6868
UriHostNameType.IPv6 => AddressFamily.InterNetworkV6,
69+
UriHostNameType.Unknown => AddressFamily.Unknown,
6970
_ => AddressFamily.Unspecified,
7071
};
7172

0 commit comments

Comments
 (0)