add local endpoint
This commit is contained in:
parent
ff0610b8ec
commit
aae30eda52
|
@ -72,8 +72,6 @@ namespace MediaBrowser.Dlna.PlayTo
|
||||||
|
|
||||||
async void _deviceDiscovery_DeviceDiscovered(object sender, SsdpMessageEventArgs e)
|
async void _deviceDiscovery_DeviceDiscovered(object sender, SsdpMessageEventArgs e)
|
||||||
{
|
{
|
||||||
var localIp = e.LocalIp;
|
|
||||||
|
|
||||||
string usn;
|
string usn;
|
||||||
if (!e.Headers.TryGetValue("USN", out usn)) usn = string.Empty;
|
if (!e.Headers.TryGetValue("USN", out usn)) usn = string.Empty;
|
||||||
|
|
||||||
|
@ -125,7 +123,7 @@ namespace MediaBrowser.Dlna.PlayTo
|
||||||
|
|
||||||
if (controller == null)
|
if (controller == null)
|
||||||
{
|
{
|
||||||
var serverAddress = GetServerAddress(localIp);
|
var serverAddress = GetServerAddress(e.LocalEndPoint.Address);
|
||||||
string accessToken = null;
|
string accessToken = null;
|
||||||
|
|
||||||
sessionInfo.SessionController = controller = new PlayToController(sessionInfo,
|
sessionInfo.SessionController = controller = new PlayToController(sessionInfo,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user