[PR #11766] Filter invalid IPs on external interface matching #12987

Closed
opened 2026-02-07 07:05:15 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/11766

State: closed
Merged: Yes


Currently, we are assuming all IPs not in user-set subnet are external IPs, but this is not accurate enough:

  • IPv4 addresses are not in IPv6 subnets and vice versa, and we will be returning IPv4 binding address as IPv6 external IP

  • Link Local Addresses are not considered as LAN address in most cases, but we are treating them as external address if available and that is wrong because such addresses are not route-able.

Changes

Issues

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/11766 **State:** closed **Merged:** Yes --- Currently, we are assuming all IPs not in user-set subnet are external IPs, but this is not accurate enough: - IPv4 addresses are not in IPv6 subnets and vice versa, and we will be returning IPv4 binding address as IPv6 external IP - Link Local Addresses are not considered as LAN address in most cases, but we are treating them as external address if available and that is wrong because such addresses are not route-able. <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** <!-- Describe your changes here in 1-5 sentences. --> **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # -->
OVERLORD added the pull-request label 2026-02-07 07:05:15 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#12987