[PR #7509] [MERGED] fix: set default ipv6 subnet to 64 #15611

Closed
opened 2026-04-13 10:08:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7509
Author: @himself65
Created: 1/21/2026
Status: Merged
Merged: 1/21/2026
Merged by: @himself65

Base: canaryHead: himself65/2026/01/20/subnet


📝 Commits (2)

  • 5f692af fix: set default ipv6 subnet to 64
  • dcbcff2 fix: set default ipv6 subnet to 64

📊 Changes

3 files changed (+33 additions, -21 deletions)

View changed files

📝 packages/core/src/types/init-options.ts (+1 -1)
📝 packages/core/src/utils/ip.test.ts (+31 -19)
📝 packages/core/src/utils/ip.ts (+1 -1)

📄 Description

Summary by cubic

Set the default IPv6 subnet to /64 for IP normalization and rate limiting, grouping addresses by /64 instead of full /128. Updated option docs and tests to reflect the new default; IPv4 behavior is unchanged.

  • Migration
    • To keep previous behavior, pass ipv6Subnet: 128 when calling normalizeIP or in config.

Written for commit dcbcff2c35. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7509 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/21/2026 **Status:** ✅ Merged **Merged:** 1/21/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2026/01/20/subnet` --- ### 📝 Commits (2) - [`5f692af`](https://github.com/better-auth/better-auth/commit/5f692afb598cb943d7f645c23415986376b690e6) fix: set default ipv6 subnet to 64 - [`dcbcff2`](https://github.com/better-auth/better-auth/commit/dcbcff2c35096e5f68c6aa0d5a482a80869f718d) fix: set default ipv6 subnet to 64 ### 📊 Changes **3 files changed** (+33 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/types/init-options.ts` (+1 -1) 📝 `packages/core/src/utils/ip.test.ts` (+31 -19) 📝 `packages/core/src/utils/ip.ts` (+1 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Set the default IPv6 subnet to /64 for IP normalization and rate limiting, grouping addresses by /64 instead of full /128. Updated option docs and tests to reflect the new default; IPv4 behavior is unchanged. - **Migration** - To keep previous behavior, pass ipv6Subnet: 128 when calling normalizeIP or in config. <sup>Written for commit dcbcff2c35096e5f68c6aa0d5a482a80869f718d. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 10:08:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#15611