diff --git a/Controllers/GetPosts.cs b/Controllers/GetPosts.cs index cef9270..a773590 100644 --- a/Controllers/GetPosts.cs +++ b/Controllers/GetPosts.cs @@ -10,7 +10,7 @@ namespace NeDvachAPI.Controllers [HttpGet(Name = "GetPosts")] public string Get() { - var remoteIpAddress = request.HttpContext.Connection.RemoteIpAddress; + var remoteIpAddress = httpContext.GetFeature()?.RemoteIpAddress; //Post[] posts = DBchat.DbList(); List posts = DBchat.DbList();