[PR #4435] [CLOSED] fix: Allow bypassing private IP validation #5693

Closed
opened 2026-11-02 04:03:23 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/4435
Author: @mfmoti
Created: 5/16/2026
Status: ❌ Closed

Base: main ← Head: fix/private-ip-blocked


📝 Commits (4)

  • 974783e fix: enable user to disable ip security checks using env variable ALLOW_PRIVATE_IPS
  • d18c4c8 chore(Dockerfile): run go mod download before copying full source
  • 486f66e Merge branch 'main' into fix/private-ip-blocked
  • 721921b fix

📊 Changes

5 files changed (+16 additions, -3 deletions)

View changed files

📝 Dockerfile (+3 -0)
📝 config/config.go (+8 -0)
📝 web/controller/xray_setting.go (+2 -1)
📝 web/job/xray_traffic_job.go (+2 -1)
📝 web/service/tgbot.go (+1 -1)

📄 Description

What does this pull request do?

Adds an option to bypass the private/internal IP address checks introduced in #4275.

When the ALLOW_PRIVATE_IPS environment variable is set to true, the private IP validation logic is skipped.

Which part of the application is affected by this change?

  • Frontend
  • Backend

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Other

This is my secondary account as my main account (the commiter) is flagged


🔄 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/MHSanaei/3x-ui/pull/4435 **Author:** [@mfmoti](https://github.com/mfmoti) **Created:** 5/16/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/private-ip-blocked` --- ### 📝 Commits (4) - [`974783e`](https://github.com/MHSanaei/3x-ui/commit/974783e8799c5883086eaec2775261687938a023) fix: enable user to disable ip security checks using env variable `ALLOW_PRIVATE_IPS` - [`d18c4c8`](https://github.com/MHSanaei/3x-ui/commit/d18c4c8d4a7b5926765493edbaadd87b5f220f34) chore(Dockerfile): run go mod download before copying full source - [`486f66e`](https://github.com/MHSanaei/3x-ui/commit/486f66efebfacd6d098993ee2ef38498f4f546d3) Merge branch 'main' into fix/private-ip-blocked - [`721921b`](https://github.com/MHSanaei/3x-ui/commit/721921b37520298ae7d17c355a7c93e965bab7ab) fix ### 📊 Changes **5 files changed** (+16 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+3 -0) 📝 `config/config.go` (+8 -0) 📝 `web/controller/xray_setting.go` (+2 -1) 📝 `web/job/xray_traffic_job.go` (+2 -1) 📝 `web/service/tgbot.go` (+1 -1) </details> ### 📄 Description ## What does this pull request do? Adds an option to bypass the private/internal IP address checks introduced in #4275. When the `ALLOW_PRIVATE_IPS` environment variable is set to `true`, the private IP validation logic is skipped. ## Which part of the application is affected by this change? * [ ] Frontend * [x] Backend ## Type of change * [x] Bug fix * [ ] New feature * [ ] Refactor * [ ] Other ## Related issue * Fixes #4420 ## This is my secondary account as my main account (the commiter) is flagged --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:03:23 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5693
No description provided.