aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Net/SocketFactory.cs
diff options
context:
space:
mode:
authorAnthony Lavado <anthonylavado@users.noreply.github.com>2019-08-28 09:41:11 -0400
committerGitHub <noreply@github.com>2019-08-28 09:41:11 -0400
commitefaa6681582de6a2ed8d19f40c015294db3d8993 (patch)
treee84a782a78dddec8844d1bb03d01c54ed2e25a3d /Emby.Server.Implementations/Net/SocketFactory.cs
parenta2fd82137c2b587552399ae6a690f91c47b25ad4 (diff)
parentdc194015c28c9c0b9347cb5c84b38f494fb1f0dd (diff)
Merge pull request #1633 from Bond-009/udpclient
Attempt to fix #1391
Diffstat (limited to 'Emby.Server.Implementations/Net/SocketFactory.cs')
-rw-r--r--Emby.Server.Implementations/Net/SocketFactory.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Net/SocketFactory.cs b/Emby.Server.Implementations/Net/SocketFactory.cs
index cb53ce50c..0870db003 100644
--- a/Emby.Server.Implementations/Net/SocketFactory.cs
+++ b/Emby.Server.Implementations/Net/SocketFactory.cs
@@ -19,7 +19,8 @@ namespace Emby.Server.Implementations.Net
throw new ArgumentException("localPort cannot be less than zero.", nameof(localPort));
}
- var retVal = new Socket(AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Dgram, System.Net.Sockets.ProtocolType.Udp);
+ var retVal = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
+
try
{
retVal.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);