aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-07-29 13:57:36 +0200
committerBond_009 <bond.009@outlook.com>2019-07-29 13:57:36 +0200
commit5c9d0414234d49a94f323228ac65cf191e80949b (patch)
tree8353d75cf9f19a115e2b3ee2197cbf931c5ee1ad
parenta8014b3942a27912b99e1de7cbf3b4d7ec3d8678 (diff)
Ignore Ipv6 link-local addresses
-rw-r--r--Emby.Server.Implementations/Networking/NetworkManager.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Networking/NetworkManager.cs b/Emby.Server.Implementations/Networking/NetworkManager.cs
index 3cacacf07..da06dc5c5 100644
--- a/Emby.Server.Implementations/Networking/NetworkManager.cs
+++ b/Emby.Server.Implementations/Networking/NetworkManager.cs
@@ -95,9 +95,8 @@ namespace Emby.Server.Implementations.Networking
private static bool FilterIpAddress(IPAddress address)
{
- var addressString = address.ToString();
-
- if (addressString.StartsWith("169.", StringComparison.OrdinalIgnoreCase))
+ if (address.IsIPv6LinkLocal
+ || address.ToString().StartsWith("169.", StringComparison.OrdinalIgnoreCase))
{
return false;
}