Skip to content

Commit 6b4e99c

Browse files
committed
Comment
1 parent 225506b commit 6b4e99c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Servers/Kestrel/Core/test/AddressBinderTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ public void ParseAddressLocalhost()
8181
[Fact]
8282
public void ParseAddress_HasPipeNoSlash()
8383
{
84+
// Pipe prefix is missing slash here and so the address is parsed as an IP.
85+
// The slash is required to differentiate between a pipe and a hostname.
8486
var listenOptions = AddressBinder.ParseAddress("http://pipe:8080", out var https);
8587
Assert.IsType<IPEndPoint>(listenOptions.EndPoint);
8688
Assert.Equal(8080, listenOptions.IPEndPoint.Port);

0 commit comments

Comments
 (0)