mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #14207] Add Configuration/UpdateTrustedNetwork api to change trusted network at runtime #13875
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/14207
Author: @gnattu
Created: 6/2/2025
Status: 🔄 Open
Base:
master← Head:update-trusted-network📝 Commits (2)
857b8cdAdd Configuration/UpdateTrustedNetwork api to change trusted network at runtimee465076remove public on interface📊 Changes
3 files changed (+59 additions, -6 deletions)
View changed files
📝
Jellyfin.Api/Controllers/ConfigurationController.cs(+29 -6)➕
Jellyfin.Api/Models/ConfigurationDtos/TrustedNetworkDto.cs(+24 -0)📝
MediaBrowser.Common/Net/INetworkManager.cs(+6 -0)📄 Description
Previously, updating trusted IPs (LocalNetworkSubnets, RemoteIPFilter, IsRemoteIPFilterBlacklist) required a server restart. This change introduces a new API endpoint that allows these network configuration fields to be updated at runtime, as their values are only read when needed. This improves flexibility for some special network environments.
Example:
Any of the LocalNetworkSubnets, RemoteIPFilter, IsRemoteIPFilterBlacklist can be null in the request, which means "no change".
Changes
Issues
Fixes #14189
An alternative approach to #14190
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.