v2.6.9 -------->>> Independent SpeedLimit
This commit is contained in:
parent
4fc4281ec9
commit
e5ec682dd1
@ -36,9 +36,11 @@ type Inbound struct {
|
||||
Remark string `json:"remark" form:"remark"`
|
||||
Enable bool `json:"enable" form:"enable"`
|
||||
ExpiryTime int64 `json:"expiryTime" form:"expiryTime"`
|
||||
|
||||
// 中文注释: 新增设备限制字段,用于存储每个入站的设备数限制。
|
||||
// gorm:"column:device_limit;default:0" 定义了数据库中的字段名和默认值。
|
||||
DeviceLimit int `json:"deviceLimit" form:"deviceLimit" gorm:"column:device_limit;default:0"`
|
||||
|
||||
ClientStats []xray.ClientTraffic `gorm:"foreignKey:InboundId;references:Id" json:"clientStats" form:"clientStats"`
|
||||
|
||||
// config part
|
||||
@ -96,6 +98,10 @@ type Client struct {
|
||||
ID string `json:"id"`
|
||||
Security string `json:"security"`
|
||||
Password string `json:"password"`
|
||||
|
||||
// 中文注释: 新增“限速”字段,单位 KB/s,0 表示不限速。
|
||||
SpeedLimit int `json:"speedLimit" form:"speedLimit"`
|
||||
|
||||
Flow string `json:"flow"`
|
||||
Email string `json:"email"`
|
||||
LimitIP int `json:"limitIp"`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user