mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #13489] [MERGED] Fix subnet contains check #13599
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/13489
Author: @gnattu
Created: 2/4/2025
Status: ✅ Merged
Merged: 2/12/2025
Merged by: @crobibero
Base:
release-10.10.z← Head:fix-subnet-detect📝 Commits (3)
f536e08Fix subnet contains check070d04cTypo99006c3Fix more typo📊 Changes
1 file changed (+32 additions, -23 deletions)
View changed files
📝
src/Jellyfin.Networking/Manager/NetworkManager.cs(+32 -23)📄 Description
We are still using
Subnet.Containsa lot but that does not handle IPv4 mapped to IPv6 addresses at all. It was partially fixed by #12094 in local network checking, but it may not always happen on LAN.Also make all local network checking to use IsInLocalNetwork method instead of just performing
Subnet.Containswhich is not accurate.Filter out all link-local addresses for external interface matching.
Changes
Issues
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.