[PR #5886] [MERGED] feat: Add outbound egress metadata (IP + country) #6022

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5886
Author: @isultanov99
Created: 7/9/2026
Status: ✅ Merged
Merged: 7/12/2026
Merged by: @MHSanaei

Base: main ← Head: outbound-egress-trace


📝 Commits (3)

  • f2dd874 Add outbound egress metadata
  • 9288fe6 Use context-aware DNS lookup for egress trace
  • 3aba973 Address outbound egress review feedback

📊 Changes

23 files changed (+494 additions, -5 deletions)

View changed files

➕ frontend/src/pages/xray/outbounds/CountryPill.tsx (+18 -0)
📝 frontend/src/pages/xray/outbounds/OutboundCardList.tsx (+57 -1)
📝 frontend/src/pages/xray/outbounds/OutboundsTab.css (+92 -0)
📝 frontend/src/pages/xray/outbounds/outbounds-tab-helpers.ts (+16 -0)
📝 frontend/src/pages/xray/outbounds/useOutboundColumns.tsx (+76 -3)
📝 frontend/src/schemas/xray.ts (+9 -0)
➕ internal/web/service/outbound/egress_trace_test.go (+17 -0)
📝 internal/web/service/outbound/outbound.go (+10 -0)
📝 internal/web/service/outbound/probe_http.go (+153 -1)
📝 internal/web/service/outbound/probe_http_test.go (+20 -0)
📝 internal/web/translation/ar-EG.json (+2 -0)
📝 internal/web/translation/en-US.json (+2 -0)
📝 internal/web/translation/es-ES.json (+2 -0)
📝 internal/web/translation/fa-IR.json (+2 -0)
📝 internal/web/translation/id-ID.json (+2 -0)
📝 internal/web/translation/ja-JP.json (+2 -0)
📝 internal/web/translation/pt-BR.json (+2 -0)
📝 internal/web/translation/ru-RU.json (+2 -0)
📝 internal/web/translation/tr-TR.json (+2 -0)
📝 internal/web/translation/uk-UA.json (+2 -0)

...and 3 more files

📄 Description

Show egress IP and country information for outbound HTTP tests. The probe reuses the temporary SOCKS route from the existing HTTP test and fetches Cloudflare trace metadata after the reachability check succeeds.

The outbound list now adds separate Egress and Country columns, hides egress IPs until the user reveals them, and marks Cloudflare WARP results with an orange cloud pill. Mobile cards keep the same data compact by placing the country and IPv4/IPv6 values on separate lines.

Validation: npm run typecheck; npm run lint; npm run build; go test ./internal/web/service/outbound


🔄 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/5886 **Author:** [@isultanov99](https://github.com/isultanov99) **Created:** 7/9/2026 **Status:** ✅ Merged **Merged:** 7/12/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `outbound-egress-trace` --- ### 📝 Commits (3) - [`f2dd874`](https://github.com/MHSanaei/3x-ui/commit/f2dd874b01190878b0ce0488b919cec7e309af9a) Add outbound egress metadata - [`9288fe6`](https://github.com/MHSanaei/3x-ui/commit/9288fe6ddf79db54b405e3e4d14acb99bbde5a5b) Use context-aware DNS lookup for egress trace - [`3aba973`](https://github.com/MHSanaei/3x-ui/commit/3aba9730610f8e4eb185c15e2d89d99e907dee1a) Address outbound egress review feedback ### 📊 Changes **23 files changed** (+494 additions, -5 deletions) <details> <summary>View changed files</summary> ➕ `frontend/src/pages/xray/outbounds/CountryPill.tsx` (+18 -0) 📝 `frontend/src/pages/xray/outbounds/OutboundCardList.tsx` (+57 -1) 📝 `frontend/src/pages/xray/outbounds/OutboundsTab.css` (+92 -0) 📝 `frontend/src/pages/xray/outbounds/outbounds-tab-helpers.ts` (+16 -0) 📝 `frontend/src/pages/xray/outbounds/useOutboundColumns.tsx` (+76 -3) 📝 `frontend/src/schemas/xray.ts` (+9 -0) ➕ `internal/web/service/outbound/egress_trace_test.go` (+17 -0) 📝 `internal/web/service/outbound/outbound.go` (+10 -0) 📝 `internal/web/service/outbound/probe_http.go` (+153 -1) 📝 `internal/web/service/outbound/probe_http_test.go` (+20 -0) 📝 `internal/web/translation/ar-EG.json` (+2 -0) 📝 `internal/web/translation/en-US.json` (+2 -0) 📝 `internal/web/translation/es-ES.json` (+2 -0) 📝 `internal/web/translation/fa-IR.json` (+2 -0) 📝 `internal/web/translation/id-ID.json` (+2 -0) 📝 `internal/web/translation/ja-JP.json` (+2 -0) 📝 `internal/web/translation/pt-BR.json` (+2 -0) 📝 `internal/web/translation/ru-RU.json` (+2 -0) 📝 `internal/web/translation/tr-TR.json` (+2 -0) 📝 `internal/web/translation/uk-UA.json` (+2 -0) _...and 3 more files_ </details> ### 📄 Description Show egress IP and country information for outbound HTTP tests. The probe reuses the temporary SOCKS route from the existing HTTP test and fetches Cloudflare trace metadata after the reachability check succeeds. The outbound list now adds separate Egress and Country columns, hides egress IPs until the user reveals them, and marks Cloudflare WARP results with an orange cloud pill. Mobile cards keep the same data compact by placing the country and IPv4/IPv6 values on separate lines. Validation: npm run typecheck; npm run lint; npm run build; go test ./internal/web/service/outbound --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:05:49 +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#6022
No description provided.