Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract networking constants #9958

Merged
merged 2 commits into from
Jul 6, 2023
Merged

Conversation

Shadowghost
Copy link
Contributor

Addresses changes proposed in #8147 after it got merged

Changes

  • Extract networking constants
  • Move networking extension to correct place

Jellyfin.Networking/Extensions/NetworkExtensions.cs Outdated Show resolved Hide resolved
Jellyfin.Networking/Extensions/NetworkExtensions.cs Outdated Show resolved Hide resolved
Jellyfin.Networking/Extensions/NetworkExtensions.cs Outdated Show resolved Hide resolved
@cvium cvium requested a review from Bond-009 July 5, 2023 19:34
/// <summary>
/// IPv4 private class A as defined in RFC 1918.
/// </summary>
public static readonly IPNetwork IPv4RFC1918PrivateClassA = new IPNetwork(IPAddress.Parse("10.0.0.0"), 8);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using the ctor that takes a byte array is prob faster than parsing a string

@Bond-009 Bond-009 merged commit 5b711f3 into jellyfin:master Jul 6, 2023
18 checks passed
@Shadowghost Shadowghost deleted the networking-fixex branch August 5, 2023 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants