Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Servers/Kestrel/Core/src/Internal/AddressBinder.cs')
-rw-r--r--src/Servers/Kestrel/Core/src/Internal/AddressBinder.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Servers/Kestrel/Core/src/Internal/AddressBinder.cs b/src/Servers/Kestrel/Core/src/Internal/AddressBinder.cs
index e8f8bbee90..448f845821 100644
--- a/src/Servers/Kestrel/Core/src/Internal/AddressBinder.cs
+++ b/src/Servers/Kestrel/Core/src/Internal/AddressBinder.cs
@@ -120,6 +120,10 @@ internal sealed class AddressBinder
{
options = new ListenOptions(parsedAddress.UnixPipePath);
}
+ else if (parsedAddress.IsNamedPipe)
+ {
+ options = new ListenOptions(new NamedPipeEndPoint(parsedAddress.NamedPipePath));
+ }
else if (string.Equals(parsedAddress.Host, "localhost", StringComparison.OrdinalIgnoreCase))
{
// "localhost" for both IPv4 and IPv6 can't be represented as an IPEndPoint.