mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-11 20:50:06 +00:00
fix undefined clientSettings / clientStats
This commit is contained in:
parent
967d091c0e
commit
578e0c8759
1 changed files with 2 additions and 2 deletions
|
@ -477,9 +477,9 @@
|
|||
this.dbInbound = new DBInbound(dbInbound);
|
||||
this.clientSettings = this.inbound.clients ? this.inbound.clients[index] : null;
|
||||
this.isExpired = this.inbound.clients ? this.inbound.isExpiry(index) : this.dbInbound.isExpiry;
|
||||
this.clientStats = this.inbound.clients ? this.dbInbound.clientStats.find(row => row.email === this.clientSettings.email) : [];
|
||||
this.clientStats = this.inbound.clients ? this.dbInbound.clientStats.find(row => row.email === (this.clientSettings.email ?? '-')) : [];
|
||||
|
||||
if (app.ipLimitEnable && this.clientSettings.limitIp) {
|
||||
if (app.ipLimitEnable && this.clientSettings.limitIp && this.clientStats !== undefined) {
|
||||
refreshIPs(this.clientStats.email).then((ips) => {
|
||||
this.clientIps = ips;
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue