Update MediaBrowser.Common/Extensions/HttpContextExtensions.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
parent
38be506849
commit
b9cd6a125b
|
@ -29,7 +29,7 @@ namespace MediaBrowser.Common.Extensions
|
|||
public static string RemoteIp(this HttpRequest request)
|
||||
{
|
||||
var cachedRemoteIp = request.HttpContext.Items["RemoteIp"].ToString();
|
||||
if (string.IsNullOrEmpty(cachedRemoteIp))
|
||||
if (!string.IsNullOrEmpty(cachedRemoteIp))
|
||||
{
|
||||
return cachedRemoteIp;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user