mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3407] [MERGED] feat: Simple periodic traffic reset (for Inbounds) – daily | weekly | monthly #5411
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#5411
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/3407
Author: @egregors
Created: 8/31/2025
Status: ✅ Merged
Merged: 9/16/2025
Merged by: @MHSanaei
Base:
main← Head:periodic-traffic-reset📝 Commits (10+)
cad0074Add periodic traffic reset feature model and ui with localization supportd132ff8Remove periodic traffic reset fields from client3407c67Merge remote-tracking branch 'origin/main' into periodic-traffic-reset283aa52fix: add periodicTrafficReset field to inbound data structure8484945feat: implement periodic traffic reset job and integrate with cron scheduler4ff0d56feat: enhance periodic traffic reset functionality with scheduling and inbound filteringa7f4602Merge branch 'main' into periodic-traffic-resetc418e99refactor: rename periodicTrafficReset to trafficReset and add lastTrafficResetTime field7d75cfcMerge branch 'periodic-traffic-reset' of https://github.com/egregors/3x-ui into periodic-traffic-reset10d57d9feat: add periodic client traffic reset job and schedule tasks📊 Changes
20 files changed (+269 additions, -22 deletions)
View changed files
📝
database/model/model.go(+12 -10)📝
web/assets/js/model/dbinbound.js(+2 -0)📝
web/html/form/inbound.html(+24 -0)📝
web/html/inbounds.html(+12 -0)➕
web/job/periodic_traffic_reset_job.go(+44 -0)📝
web/service/inbound.go(+44 -11)📝
web/translation/translate.ar_EG.toml(+9 -0)📝
web/translation/translate.en_US.toml(+9 -0)📝
web/translation/translate.es_ES.toml(+9 -0)📝
web/translation/translate.fa_IR.toml(+10 -1)📝
web/translation/translate.id_ID.toml(+9 -0)📝
web/translation/translate.ja_JP.toml(+9 -0)📝
web/translation/translate.pt_BR.toml(+9 -0)📝
web/translation/translate.ru_RU.toml(+9 -0)📝
web/translation/translate.tr_TR.toml(+9 -0)📝
web/translation/translate.uk_UA.toml(+9 -0)📝
web/translation/translate.vi_VN.toml(+9 -0)📝
web/translation/translate.zh_CN.toml(+9 -0)📝
web/translation/translate.zh_TW.toml(+9 -0)📝
web/web.go(+13 -0)📄 Description
What is the pull request?
This PR adds a possibility to set periodic traffic reset option in order to reset traffic counter every day | week | month.
The implementation is pretty straightforward, but in general able to be extended for more periods variants.
Traffic reset right now supports only for Inbounds.
My motivation is my own use cases and this issue
What I have done:
neverWhich part of the application is affected by the change?
Type of Changes
Screenshots
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.