[PR #4591] [CLOSED] fix: return local IP in development mode for getIp function #5467

Closed
opened 2026-03-13 12:23:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4591
Author: @himself65
Created: 9/11/2025
Status: Closed

Base: canaryHead: himself65/2025/09/11/ip


📝 Commits (1)

  • 8c2d0a8 fix: return local IP in development mode for getIp function

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/utils/get-request-ip.ts (+4 -1)

📄 Description

Summary by cubic

getIp now returns 127.0.0.1 in development mode, matching test behavior. This makes local runs deterministic and avoids relying on client/proxy headers during development.


🔄 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/4591 **Author:** [@himself65](https://github.com/himself65) **Created:** 9/11/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `himself65/2025/09/11/ip` --- ### 📝 Commits (1) - [`8c2d0a8`](https://github.com/better-auth/better-auth/commit/8c2d0a8411d753ee933b6ecab4bd1f567baf99f8) fix: return local IP in development mode for getIp function ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/utils/get-request-ip.ts` (+4 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic getIp now returns 127.0.0.1 in development mode, matching test behavior. This makes local runs deterministic and avoids relying on client/proxy headers during development. <!-- 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-03-13 12:23:52 -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#5467