mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #5180] [CLOSED] Fix IsInNetwork for IPv6 addresses #10420
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/5180
Author: @daullmer
Created: 2/7/2021
Status: ❌ Closed
Base:
master← Head:ipv6-network-fix📝 Commits (10+)
ba81e2aFix IsInNetwork for IPv6 addresses7707821Revert IPNetAddress to IPHost253d191Change GetNormalizedRemoteIp to return IPAddress416d2e9fix LocalAccessHandlerTests.csbf51d97Change log message parameter casing376c935Remove Logging from NetworkManager.csbe852b3Merge branch 'master' of github.com:jellyfin/jellyfin into ipv6-network-fix2d934c7Fix broken tests2987751Cleanup network tests and validate output6e37bc7Normalised IPHost.HostName📊 Changes
11 files changed (+400 additions, -319 deletions)
View changed files
📝
Emby.Server.Implementations/HttpServer/Security/SessionContext.cs(+1 -1)📝
Jellyfin.Api/Controllers/UserController.cs(+18 -7)📝
Jellyfin.Api/Helpers/DynamicHlsHelper.cs(+1 -1)📝
Jellyfin.Api/Helpers/MediaInfoHelper.cs(+3 -2)📝
Jellyfin.Api/Helpers/RequestHelpers.cs(+1 -1)📝
MediaBrowser.Common/Extensions/HttpContextExtensions.cs(+2 -2)📝
MediaBrowser.Common/Net/IPHost.cs(+21 -4)📝
MediaBrowser.Common/Net/IPNetAddress.cs(+7 -0)📝
tests/Jellyfin.Api.Tests/Auth/LocalAccessPolicy/LocalAccessHandlerTests.cs(+2 -1)➕
tests/Jellyfin.Networking.Tests/NetworkManagerTests.cs(+233 -0)📝
tests/Jellyfin.Networking.Tests/NetworkParseTests.cs(+111 -300)📄 Description
Changes
Change IP parsing fromIPHosttoIPNetAddressbecauseIPHostcan't parse IPv6 address from request (is this the right class or should I use the .NET providedIPAddress@BaronGreenback ?)GetNormalizedRemoteIpreturn value fromstringtoIPAddressand make.ToString()-call, if necessary, from calling method (#5602)Add Debug logging forIsInLocalNetwork🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.