mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 08:15:28 +03:00
Consistently write IP in upercase
This commit is contained in:
@@ -25,7 +25,7 @@ namespace MediaBrowser.Common.Extensions
|
||||
/// </summary>
|
||||
/// <param name="context">The HTTP context.</param>
|
||||
/// <returns>The remote caller IP address.</returns>
|
||||
public static IPAddress GetNormalizedRemoteIp(this HttpContext context)
|
||||
public static IPAddress GetNormalizedRemoteIP(this HttpContext context)
|
||||
{
|
||||
// Default to the loopback address if no RemoteIpAddress is specified (i.e. during integration tests)
|
||||
var ip = context.Connection.RemoteIpAddress ?? IPAddress.Loopback;
|
||||
|
||||
Reference in New Issue
Block a user