mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-17 15:53:42 +01:00
Replace == null with is null
This commit is contained in:
@@ -15,8 +15,8 @@ namespace MediaBrowser.Common.Extensions
|
||||
/// <returns><c>true</c> if the request is coming from LAN, <c>false</c> otherwise.</returns>
|
||||
public static bool IsLocal(this HttpContext context)
|
||||
{
|
||||
return (context.Connection.LocalIpAddress == null
|
||||
&& context.Connection.RemoteIpAddress == null)
|
||||
return (context.Connection.LocalIpAddress is null
|
||||
&& context.Connection.RemoteIpAddress is null)
|
||||
|| Equals(context.Connection.LocalIpAddress, context.Connection.RemoteIpAddress);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user