Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Dec 10, 2022
1 parent 225506b commit 6b4e99c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Servers/Kestrel/Core/test/AddressBinderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ public void ParseAddressLocalhost()
[Fact]
public void ParseAddress_HasPipeNoSlash()
{
// Pipe prefix is missing slash here and so the address is parsed as an IP.
// The slash is required to differentiate between a pipe and a hostname.
var listenOptions = AddressBinder.ParseAddress("http://pipe:8080", out var https);
Assert.IsType<IPEndPoint>(listenOptions.EndPoint);
Assert.Equal(8080, listenOptions.IPEndPoint.Port);
Expand Down

0 comments on commit 6b4e99c

Please sign in to comment.