mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #14190] [CLOSED] Fix using subnets from interfaces as lan networks #13876
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/14190
Author: @Elsensee
Created: 5/29/2025
Status: ❌ Closed
Base:
master← Head:iface-subnets📝 Commits (1)
e4ea5f8Fix using subnets from interfaces as lan networks📊 Changes
1 file changed (+11 additions, -26 deletions)
View changed files
📝
src/Jellyfin.Networking/Manager/NetworkManager.cs(+11 -26)📄 Description
Changes
Instead of looking at the spec-RFC LAN addresses, the LAN subnets are now derived from the unicast addresses assigned to the network interfaces. Now, all addresses are considered LAN for which a router is technically not required, so even IPv6-GUAs within the same subnet (mostly /64). As a side effect, RFC1918-subnets which are not on link, are no more included — so a host on a 192.168.x.0/24 will no longer consider 10.0.0.0/8 local, if there exists no interface with that address. (And I inverted the
iffor better code readability)Also, I have applied the default configuration to the
detectNetworkChangevariable in caseTryParsefails, because in the case of dynamically changing GUAs, this would lead to the wrong behavior which would only be fixable by a restart of Jellyfin.Issues
Fixes #14189
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.