mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Update NetworkExtensions.cs
changed description
This commit is contained in:
parent
2fe26ef136
commit
b1f0c5eb49
@ -27,10 +27,11 @@ namespace MediaBrowser.Common.Net
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source">The <see cref="Collection{IPObject}"/>.</param>
|
/// <param name="source">The <see cref="Collection{IPObject}"/>.</param>
|
||||||
/// <param name="item">Item to add.</param>
|
/// <param name="item">Item to add.</param>
|
||||||
/// <param name="unique"><c>True</c> if subnets that overlap should be merged (default).</param>
|
/// <param name="itemsAreNetworks">If <c>true</c> the values are treated as subnets.
|
||||||
public static void AddItem(this Collection<IPObject> source, IPObject item, bool unique = true)
|
/// 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);
|
source.Add(item);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user