aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2021-03-11 22:46:07 +0000
committerGitHub <noreply@github.com>2021-03-11 22:46:07 +0000
commitf66cb9777ddaf42f19ea452f85c5fa0b7e907391 (patch)
treeaa38ea6fb5eabc43ff964ba5515d48fba0d288f3
parent034ee38583e613e7dd24282d02051f599b15cedc (diff)
Update Jellyfin.Networking/Manager/NetworkManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
-rw-r--r--Jellyfin.Networking/Manager/NetworkManager.cs13
1 files changed, 1 insertions, 12 deletions
diff --git a/Jellyfin.Networking/Manager/NetworkManager.cs b/Jellyfin.Networking/Manager/NetworkManager.cs
index b874f5984..f42c0aeeb 100644
--- a/Jellyfin.Networking/Manager/NetworkManager.cs
+++ b/Jellyfin.Networking/Manager/NetworkManager.cs
@@ -593,18 +593,7 @@ namespace Jellyfin.Networking.Manager
if (RemoteAddressFilter.Count > 0 && !IsInLocalNetwork(remoteIp))
{
// remoteAddressFilter is a whitelist or blacklist.
- bool isListed = RemoteAddressFilter.ContainsAddress(remoteIp);
- if (config.IsRemoteIPFilterBlacklist)
- {
- // Black list, so flip over.
- isListed = !isListed;
- }
-
- if (!isListed)
- {
- // If your name isn't on the list, you arn't coming in.
- return false;
- }
+ return RemoteAddressFilter.ContainsAddress(remoteIp) == !config.IsRemoteIPFilterBlacklist;
}
}
else if (!IsInLocalNetwork(remoteIp))