[PR #4434] [CLOSED] fix: Allow bypassing private IP validation #5691

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/4434
Author: @fmotalleb
Created: 5/16/2026
Status: ❌ Closed

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


📝 Commits (1)

  • 974783e fix: enable user to disable ip security checks using env variable ALLOW_PRIVATE_IPS

📊 Changes

4 files changed (+13 additions, -3 deletions)

View changed files

📝 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 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/4434 **Author:** [@fmotalleb](https://github.com/fmotalleb) **Created:** 5/16/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/private-ip-blocked` --- ### 📝 Commits (1) - [`974783e`](https://github.com/MHSanaei/3x-ui/commit/974783e8799c5883086eaec2775261687938a023) fix: enable user to disable ip security checks using env variable `ALLOW_PRIVATE_IPS` ### 📊 Changes **4 files changed** (+13 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `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 --- <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#5691
No description provided.