diff options
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs index d88a04063..95877ec0c 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs +++ b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs @@ -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(); |
