From cc38db65f954a64116eb57a8c3a87f536d86eeea Mon Sep 17 00:00:00 2001 From: Troy Dai Date: Wed, 13 Jan 2016 14:00:47 -0800 Subject: [PATCH] Set Connection.IsLocal to true for test server --- src/Microsoft.AspNet.Server.Kestrel/Http/Frame.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Microsoft.AspNet.Server.Kestrel/Http/Frame.cs b/src/Microsoft.AspNet.Server.Kestrel/Http/Frame.cs index f315bb702..419d03f97 100644 --- a/src/Microsoft.AspNet.Server.Kestrel/Http/Frame.cs +++ b/src/Microsoft.AspNet.Server.Kestrel/Http/Frame.cs @@ -237,6 +237,10 @@ public void Reset() { httpConnectionFeature.IsLocal = _remoteEndPoint.Address.Equals(_localEndPoint.Address); } + else if (_remoteEndPoint == null && _localEndPoint == null) + { + httpConnectionFeature.IsLocal = true; + } else { httpConnectionFeature.IsLocal = false;