fix: propagate inbound traffic reset to nodes (#5103)

Co-authored-by: Rqzbeh <Rqzbeh@example.com>
This commit is contained in:
Rouzbeh†
2026-06-09 01:26:30 +02:00
committed by GitHub
parent 5a7de02598
commit be8bd4e22c
4 changed files with 38 additions and 2 deletions
+5
View File
@@ -399,6 +399,11 @@ func (r *Remote) ResetAllTraffics(ctx context.Context) error {
return err
}
func (r *Remote) ResetInboundTraffic(ctx context.Context, ib *model.Inbound) error {
_, err := r.do(ctx, http.MethodPost, fmt.Sprintf("panel/api/inbounds/%d/resetTraffic", ib.Id), nil)
return err
}
type TrafficSnapshot struct {
Inbounds []*model.Inbound
OnlineEmails []string