Update MediaBrowser.Common/Extensions/HttpContextExtensions.cs

Co-authored-by: Cody Robibero <cody@robibe.ro>
pull/4039/head
Claus Vium 4 years ago committed by GitHub
parent 38be506849
commit b9cd6a125b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save