mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 05:18:27 +01:00
Fix missing logging of connections by disallowed IPs (#14011)
This commit is contained in:
@@ -12,7 +12,7 @@ namespace MediaBrowser.Common.Extensions
|
||||
/// Checks the origin of the HTTP context.
|
||||
/// </summary>
|
||||
/// <param name="context">The incoming HTTP context.</param>
|
||||
/// <returns><c>true</c> if the request is coming from LAN, <c>false</c> otherwise.</returns>
|
||||
/// <returns><c>true</c> if the request is coming from the same machine as is running the server, <c>false</c> otherwise.</returns>
|
||||
public static bool IsLocal(this HttpContext context)
|
||||
{
|
||||
return (context.Connection.LocalIpAddress is null
|
||||
|
||||
Reference in New Issue
Block a user