cbd0e71c07
This will be the right way for multiple interfaces, or the client will receive all devices message with different IP addresses and could not detect which one could access. And provide one option DlnaOptions.SendOnlyMatchedHost to fallback to old behaviour if this commit missed something.
26 lines
807 B
C#
26 lines
807 B
C#
|
|
namespace Emby.Dlna.Configuration
|
|
{
|
|
public class DlnaOptions
|
|
{
|
|
public bool EnablePlayTo { get; set; }
|
|
public bool EnableServer { get; set; }
|
|
public bool EnableDebugLog { get; set; }
|
|
public bool BlastAliveMessages { get; set; }
|
|
public bool SendOnlyMatchedHost { get; set; }
|
|
public int ClientDiscoveryIntervalSeconds { get; set; }
|
|
public int BlastAliveMessageIntervalSeconds { get; set; }
|
|
public string DefaultUserId { get; set; }
|
|
|
|
public DlnaOptions()
|
|
{
|
|
EnablePlayTo = true;
|
|
EnableServer = true;
|
|
BlastAliveMessages = true;
|
|
SendOnlyMatchedHost = true;
|
|
ClientDiscoveryIntervalSeconds = 60;
|
|
BlastAliveMessageIntervalSeconds = 1800;
|
|
}
|
|
}
|
|
}
|