mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-16 15:16:41 +00:00
Apply review suggestions
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user