mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
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…
x
Reference in New Issue
Block a user