diff options
| author | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-02-09 10:10:33 +0100 |
|---|---|---|
| committer | Bond-009 <bond.009@outlook.com> | 2019-02-09 10:10:33 +0100 |
| commit | f1ef0b0b4c54b2c370704aacb13a37e9abd4a6a0 (patch) | |
| tree | 2ff237f4da67a34d633dcb57de62d8c15b8c41d9 /Emby.Server.Implementations/Networking/IPNetwork/IPAddressCollection.cs | |
| parent | 387b4dea254b9660aa295380b7c97713257eb839 (diff) | |
Fix namespacing so it lines up properly with file names and paths (#715)
* Fix stupid namespacing so it lines up properly with file names and paths.
Diffstat (limited to 'Emby.Server.Implementations/Networking/IPNetwork/IPAddressCollection.cs')
| -rw-r--r-- | Emby.Server.Implementations/Networking/IPNetwork/IPAddressCollection.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Networking/IPNetwork/IPAddressCollection.cs b/Emby.Server.Implementations/Networking/IPNetwork/IPAddressCollection.cs index c5853135c..a0c5f73af 100644 --- a/Emby.Server.Implementations/Networking/IPNetwork/IPAddressCollection.cs +++ b/Emby.Server.Implementations/Networking/IPNetwork/IPAddressCollection.cs @@ -1,8 +1,10 @@ +using System; using System.Collections; using System.Collections.Generic; +using System.Net; using System.Numerics; -namespace System.Net +namespace Emby.Server.Implementations.Networking.IPNetwork { public class IPAddressCollection : IEnumerable<IPAddress>, IEnumerator<IPAddress> { @@ -29,7 +31,7 @@ namespace System.Net { throw new ArgumentOutOfRangeException(nameof(i)); } - byte width = this._ipnetwork.AddressFamily == Sockets.AddressFamily.InterNetwork ? (byte)32 : (byte)128; + byte width = this._ipnetwork.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork ? (byte)32 : (byte)128; var ipn = this._ipnetwork.Subnet(width); return ipn[i].Network; } |
