diff options
| author | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2021-03-13 22:16:12 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-13 22:16:12 +0000 |
| commit | b1f0c5eb4935904bea3a784e147d403b9d43097d (patch) | |
| tree | 4eced803694fdd54cd178a2264dccb79c03bd31d | |
| parent | 2fe26ef136fb00a59362bec33f0a4c31335a330a (diff) | |
Update NetworkExtensions.cs
changed description
| -rw-r--r-- | MediaBrowser.Common/Net/NetworkExtensions.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/MediaBrowser.Common/Net/NetworkExtensions.cs b/MediaBrowser.Common/Net/NetworkExtensions.cs index cd0c2ea24..26f21b5f1 100644 --- a/MediaBrowser.Common/Net/NetworkExtensions.cs +++ b/MediaBrowser.Common/Net/NetworkExtensions.cs @@ -27,10 +27,11 @@ namespace MediaBrowser.Common.Net /// </summary> /// <param name="source">The <see cref="Collection{IPObject}"/>.</param> /// <param name="item">Item to add.</param> - /// <param name="unique"><c>True</c> if subnets that overlap should be merged (default).</param> - public static void AddItem(this Collection<IPObject> source, IPObject item, bool unique = true) + /// <param name="itemsAreNetworks">If <c>true</c> the values are treated as subnets. + /// If <b>false</b> items are addresses.</param> + public static void AddItem(this Collection<IPObject> source, IPObject item, bool itemsAreNetworks = true) { - if (!source.ContainsAddress(item) || !unique) + if (!source.ContainsAddress(item) || !itemsAreNetworks) { source.Add(item); } |
