mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-28 21:11:55 +00:00
fix crashes on devices that don't support ipv6
This commit is contained in:
@@ -779,6 +779,9 @@ public class NetworkManager : INetworkManager, IDisposable
|
||||
return knownInterfaces;
|
||||
}
|
||||
|
||||
// TODO: remove when upgrade to dotnet 11 is done
|
||||
readIpv6 &= Socket.OSSupportsIPv6;
|
||||
|
||||
// No bind address and no exclusions, so listen on all interfaces.
|
||||
var result = new List<IPData>();
|
||||
if (readIpv4 && readIpv6)
|
||||
|
||||
Reference in New Issue
Block a user