mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #15645] [CLOSED] Update WebSocketManager.cs Fix RemoteIPHeader for WebSocket connections #14369
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/15645
Author: @WWWesten
Created: 11/27/2025
Status: ❌ Closed
Base:
master← Head:remoteip📝 Commits (1)
5bc9eccUpdate WebSocketManager.cs Fix RemoteIPHeader for WebSocket connections📊 Changes
1 file changed (+5 additions, -3 deletions)
View changed files
📝
Emby.Server.Implementations/HttpServer/WebSocketManager.cs(+5 -3)📄 Description
Fix RemoteIPHeader for WebSocket connections
Changes
Replaced usage of context.Connection.RemoteIpAddress in WebSocketManager with NetworkManager.GetRemoteIp(context.Request).
This ensures that RemoteIPHeader and KnownProxies settings are respected for WebSocket connections.
As a result, clients behind reverse proxies will now show their real IP addresses instead of the proxy IP.
Issues
No related issue filed. Can be linked later if maintainers request.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.