aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-09-23 21:44:05 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-09-23 21:44:05 -0400
commit995353e21671b08838064f77c4bae5382d0bbf83 (patch)
tree8dcdaca47a2102509ac9ad0d83dbc37ebbe7d264 /MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
parentdbb8ec192f90ce0a61b5c7d64ecd73bb8dcb4101 (diff)
add dish hopper profile
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs11
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();