This commit is contained in:
MHSanaei 2026-04-24 11:08:41 +02:00
parent 7785a6f2d3
commit 0f76558bf8
No known key found for this signature in database
GPG key ID: 7E4060F2FBE5AB7A
2 changed files with 20 additions and 19 deletions

View file

@ -1164,7 +1164,9 @@
if (!msg.success) { if (!msg.success) {
return; return;
} }
with (msg.obj) { const { expireDiff, trafficDiff, defaultCert, defaultKey, tgBotEnable,
subEnable, subTitle, subURI, subJsonURI, subJsonEnable,
pageSize, remarkModel, datepicker, ipLimitEnable } = msg.obj;
this.expireDiff = expireDiff * 86400000; this.expireDiff = expireDiff * 86400000;
this.trafficDiff = trafficDiff * 1073741824; this.trafficDiff = trafficDiff * 1073741824;
this.defaultCert = defaultCert; this.defaultCert = defaultCert;
@ -1181,7 +1183,6 @@
this.remarkModel = remarkModel; this.remarkModel = remarkModel;
this.datepicker = datepicker; this.datepicker = datepicker;
this.ipLimitEnable = ipLimitEnable; this.ipLimitEnable = ipLimitEnable;
}
}, },
applyShareQuotaPooling(dbInbounds) { applyShareQuotaPooling(dbInbounds) {
// For every client that opted into shareQuota and has a subId, replace // For every client that opted into shareQuota and has a subId, replace

View file

@ -835,7 +835,7 @@ func (s *InboundService) writeBackClientSubID(sourceInboundID int, sourceProtoco
} }
settingsBytes, err := json.Marshal(map[string][]model.Client{ settingsBytes, err := json.Marshal(map[string][]model.Client{
"clients": []model.Client{client}, "clients": {client},
}) })
if err != nil { if err != nil {
return false, err return false, err