aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Net/SocketFactory.cs
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2023-01-19 19:03:43 +0100
committerShadowghost <Ghost_of_Stone@web.de>2023-01-19 19:03:43 +0100
commit6e460754142380eb7d2a509ee41b58e6a1c1665f (patch)
tree8192d31affda58d3b3174fb6b400f757b5431c11 /Emby.Server.Implementations/Net/SocketFactory.cs
parent6954283af3b5c75d38aa1bf2a399538fb19a8f0f (diff)
Apply review suggestions
Diffstat (limited to 'Emby.Server.Implementations/Net/SocketFactory.cs')
-rw-r--r--Emby.Server.Implementations/Net/SocketFactory.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/Emby.Server.Implementations/Net/SocketFactory.cs b/Emby.Server.Implementations/Net/SocketFactory.cs
index e0c75698d..b6d87a788 100644
--- a/Emby.Server.Implementations/Net/SocketFactory.cs
+++ b/Emby.Server.Implementations/Net/SocketFactory.cs
@@ -61,14 +61,10 @@ namespace Emby.Server.Implementations.Net
}
/// <inheritdoc />
- public ISocket CreateUdpMulticastSocket(IPAddress ipAddress, IPAddress? bindIpAddress, int multicastTimeToLive, int localPort)
+ public ISocket CreateUdpMulticastSocket(IPAddress ipAddress, IPAddress bindIpAddress, int multicastTimeToLive, int localPort)
{
ArgumentNullException.ThrowIfNull(ipAddress);
-
- if (bindIpAddress == null)
- {
- bindIpAddress = IPAddress.Any;
- }
+ ArgumentNullException.ThrowIfNull(bindIpAddress);
if (multicastTimeToLive <= 0)
{