mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-01 03:30:06 +00:00
Apply review suggestions
This commit is contained in:
parent
6954283af3
commit
6e46075414
2 changed files with 7 additions and 9 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue