Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit 0efa27a

Browse files
committed
Review feedback 1
1 parent c98b4ac commit 0efa27a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

samples/SampleApp/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory, IAp
5252
context.Request.Path,
5353
context.Request.QueryString);
5454

55-
var connectionFeature = context.Features.Get<IHttpConnectionFeature>();
55+
var connectionFeature = context.Connection;
5656
if (connectionFeature != null)
5757
{
5858
Console.WriteLine($"Peer: {connectionFeature.RemoteIpAddress.ToString()} {connectionFeature.RemotePort}");

samples/SampleApp/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
}
1818
},
1919
"commands": {
20-
"web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://*:5000;https://*:5001",
21-
"kestrel": "Microsoft.AspNet.Server.Kestrel --server.urls http://*:5000;https://*:5001",
20+
"web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://localhost:5000;https://localhost:5001",
21+
"kestrel": "Microsoft.AspNet.Server.Kestrel --server.urls http://localhost:5000;https://localhost:5001",
2222
"run-socket": "Microsoft.AspNet.Server.Kestrel --server.urls http://unix:/tmp/kestrel-test.sock"
2323
}
2424
}

0 commit comments

Comments
 (0)