mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Update Jellyfin.Networking/Manager/NetworkManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
parent
034ee38583
commit
f66cb9777d
1 changed files with 1 additions and 12 deletions
|
@ -593,18 +593,7 @@ namespace Jellyfin.Networking.Manager
|
||||||
if (RemoteAddressFilter.Count > 0 && !IsInLocalNetwork(remoteIp))
|
if (RemoteAddressFilter.Count > 0 && !IsInLocalNetwork(remoteIp))
|
||||||
{
|
{
|
||||||
// remoteAddressFilter is a whitelist or blacklist.
|
// remoteAddressFilter is a whitelist or blacklist.
|
||||||
bool isListed = RemoteAddressFilter.ContainsAddress(remoteIp);
|
return RemoteAddressFilter.ContainsAddress(remoteIp) == !config.IsRemoteIPFilterBlacklist;
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!IsInLocalNetwork(remoteIp))
|
else if (!IsInLocalNetwork(remoteIp))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue