mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:16:47 +00:00
add dish hopper profile
This commit is contained in:
parent
dbb8ec192f
commit
995353e216
24 changed files with 462 additions and 69 deletions
|
|
@ -166,6 +166,17 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||
|
||||
private void OnRequestReceived(string localEndPoint)
|
||||
{
|
||||
var ignore = localEndPoint.IndexOf("::", StringComparison.OrdinalIgnoreCase) != -1 ||
|
||||
|
||||
localEndPoint.StartsWith("127.", StringComparison.OrdinalIgnoreCase) ||
|
||||
localEndPoint.StartsWith("localhost", StringComparison.OrdinalIgnoreCase) ||
|
||||
localEndPoint.StartsWith("169.", StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
if (ignore)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (_localEndpointLock.TryEnterWriteLock(100))
|
||||
{
|
||||
var list = _localEndpoints.ToList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue