mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Fix interface address assignment and resolution in SSDP
This commit is contained in:
@@ -428,12 +428,12 @@ namespace Rssdp.Infrastructure
|
||||
if (result.ReceivedBytes > 0)
|
||||
{
|
||||
var remoteEndpoint = (IPEndPoint)result.RemoteEndPoint;
|
||||
var localEndpointAddress = result.PacketInformation.Address;
|
||||
var localEndpointAdapter = _networkManager.GetAllBindInterfaces().Where(a => a.Index == result.PacketInformation.Interface).First();
|
||||
|
||||
ProcessMessage(
|
||||
UTF8Encoding.UTF8.GetString(receiveBuffer, 0, result.ReceivedBytes),
|
||||
remoteEndpoint,
|
||||
localEndpointAddress);
|
||||
localEndpointAdapter.Address);
|
||||
}
|
||||
}
|
||||
catch (ObjectDisposedException)
|
||||
|
||||
Reference in New Issue
Block a user