mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 07:10:34 +02:00
add local endpoint
This commit is contained in:
parent
9307d515e6
commit
ff0610b8ec
|
@ -12,7 +12,7 @@ namespace MediaBrowser.Controller.Dlna
|
||||||
|
|
||||||
public Dictionary<string, string> Headers { get; set; }
|
public Dictionary<string, string> Headers { get; set; }
|
||||||
|
|
||||||
public IPAddress LocalIp { get; set; }
|
public IPEndPoint LocalEndPoint { get; set; }
|
||||||
public byte[] Message { get; set; }
|
public byte[] Message { get; set; }
|
||||||
|
|
||||||
public SsdpMessageEventArgs()
|
public SsdpMessageEventArgs()
|
||||||
|
|
|
@ -108,9 +108,9 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
|
||||||
{
|
{
|
||||||
var endpoint = e.EndPoint as IPEndPoint;
|
var endpoint = e.EndPoint as IPEndPoint;
|
||||||
|
|
||||||
if (endpoint != null && e.LocalIp != null)
|
if (endpoint != null && e.LocalEndPoint != null)
|
||||||
{
|
{
|
||||||
NatUtility.Handle(e.LocalIp, e.Message, endpoint, NatProtocol.Upnp);
|
NatUtility.Handle(e.LocalEndPoint.Address, e.Message, endpoint, NatProtocol.Upnp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue