inbounds: allow custom monthly traffic reset days (#6071)

This commit is contained in:
Shichao Song authored and GitHub committed 2026-07-28 23:27:09 +02:00 Unverified
1 parent 34d2591e50
commit 17e6b5a460
37 files changed
+179 -16

No files matched your search

+1
View File
@@ -450,6 +450,7 @@ export const EXAMPLES: Record<string, unknown> = {
"tag": "in-443-tcp",
"total": 0,
"trafficReset": "never",
"trafficResetDay": 1,
"up": 0
},
"InboundClientIps": {
+8
View File
@@ -1842,6 +1842,13 @@ export const SCHEMAS: Record<string, unknown> = {
],
"type": "string"
},
"trafficResetDay": {
"description": "Day of month for monthly traffic resets",
"example": 1,
"maximum": 31,
"minimum": 1,
"type": "integer"
},
"up": {
"description": "Upload traffic in bytes",
"format": "int64",
@@ -1868,6 +1875,7 @@ export const SCHEMAS: Record<string, unknown> = {
"tag",
"total",
"trafficReset",
"trafficResetDay",
"up"
],
"type": "object"
+1
View File
@@ -428,6 +428,7 @@ export interface Inbound {
tag: string;
total: number;
trafficReset: string;
trafficResetDay: number;
up: number;
}
Loaded 3 of 37 files, more files were not shown because too many files have changed in this diff. Show more