diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-05-24 15:40:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-24 15:40:25 -0400 |
| commit | ff19fd971c3dadd716cb49366691b830d41cea26 (patch) | |
| tree | d12fde3dd5178579e71e2f268602ad642ffaebe7 /Emby.Common.Implementations/Net/SocketFactory.cs | |
| parent | 57bce7daf3777be0ab83833d140c3bb1b13766a8 (diff) | |
| parent | 71f7fc4e116f32a20c63ddbb17844a81283a6ba4 (diff) | |
Merge pull request #2658 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Common.Implementations/Net/SocketFactory.cs')
| -rw-r--r-- | Emby.Common.Implementations/Net/SocketFactory.cs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Emby.Common.Implementations/Net/SocketFactory.cs b/Emby.Common.Implementations/Net/SocketFactory.cs index 39f236afa..3562a8644 100644 --- a/Emby.Common.Implementations/Net/SocketFactory.cs +++ b/Emby.Common.Implementations/Net/SocketFactory.cs @@ -188,16 +188,7 @@ namespace Emby.Common.Implementations.Net try { -#if NET46 - retVal.ExclusiveAddressUse = false; -#else - // The ExclusiveAddressUse acceptSocket option is a Windows-specific option that, when set to "true," tells Windows not to allow another acceptSocket to use the same local address as this acceptSocket - // See https://github.com/dotnet/corefx/pull/11509 for more details - if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Windows)) - { - retVal.ExclusiveAddressUse = false; - } -#endif + retVal.ExclusiveAddressUse = false; //retVal.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, true); retVal.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true); retVal.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.MulticastTimeToLive, multicastTimeToLive); |
