mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
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#5663
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/4338
Author: @abdalrahmanx9
Created: 5/13/2026
Status: ✅ Merged
Merged: 5/13/2026
Merged by: @MHSanaei
Base:
main← Head:fix/single-inbound-traffic-reset📝 Commits (1)
a7dbbb1fix: single inbound traffic reset resets all inbounds (#4334)📊 Changes
15 files changed (+33 additions, -1 deletions)
View changed files
📝
frontend/src/pages/inbounds/InboundsPage.vue(+1 -1)📝
web/controller/inbound.go(+19 -0)📝
web/translation/ar-EG.json(+1 -0)📝
web/translation/en-US.json(+1 -0)📝
web/translation/es-ES.json(+1 -0)📝
web/translation/fa-IR.json(+1 -0)📝
web/translation/id-ID.json(+1 -0)📝
web/translation/ja-JP.json(+1 -0)📝
web/translation/pt-BR.json(+1 -0)📝
web/translation/ru-RU.json(+1 -0)📝
web/translation/tr-TR.json(+1 -0)📝
web/translation/uk-UA.json(+1 -0)📝
web/translation/vi-VN.json(+1 -0)📝
web/translation/zh-CN.json(+1 -0)📝
web/translation/zh-TW.json(+1 -0)📄 Description
Description
Clicking "Reset traffic" on a single inbound (via the 3-dot menu on the Inbounds page) resets traffic counters for all inbounds — not just the selected one. It also propagates the reset to remote nodes, resetting client traffic on those nodes.
How to reproduce
Root cause
confirmResetTraffic(dbInbound)inInboundsPage.vuereceives the selected inbound as a parameter and displays its remark in the confirmation dialog, but the API call was hardcoded toPOST /panel/api/inbounds/resetAllTraffics— ignoring the inbound ID entirely.Additionally, the backend had a correctly-scoped service method
ResetInboundTraffic(id)(web/service/inbound.go:3032) but it was never exposed via an API route.Fix
POST /panel/api/inbounds/${dbInbound.id}/resetTrafficPOST /:id/resetTrafficroute wired to a newresetInboundTraffichandler that calls the existingResetInboundTraffic(id)service method (which correctly usesWHERE id = ?)resetInboundTrafficSuccesskey to all 13 translation filesCloses #4334
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.