mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5886] [MERGED] feat: Add outbound egress metadata (IP + country) #6022
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6022
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
f2dd874Add outbound egress metadata9288fe6Use context-aware DNS lookup for egress trace3aba973Address 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.