diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-03-17 19:07:49 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-03-17 19:07:49 +0300 |
| commit | 96786c94189f3d2f3f04c1915529c786228bdf42 (patch) | |
| tree | 879085e09a3cd485f3246f46be907fe77eb84a1a /web/assets/js/model/models.js | |
| parent | bc56e637376142c370c31b17558fc3778a863bd2 (diff) | |
alireza
Diffstat (limited to 'web/assets/js/model/models.js')
| -rw-r--r-- | web/assets/js/model/models.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/web/assets/js/model/models.js b/web/assets/js/model/models.js index e7b3ce84..485464e4 100644 --- a/web/assets/js/model/models.js +++ b/web/assets/js/model/models.js @@ -36,7 +36,8 @@ class DBInbound { this.remark = ""; this.enable = true; this.expiryTime = 0; - this.iplimit = 0; + this.limitIp = 0; + this.listen = ""; this.port = 0; this.protocol = ""; @@ -109,10 +110,6 @@ class DBInbound { get isExpiry() { return this.expiryTime < new Date().getTime(); } - get isDBInboundEmpty() { - const inbound = this.toInbound(); - return inbound.isInboundEmpty(); - } toInbound() { let settings = {}; @@ -159,6 +156,7 @@ class DBInbound { const inbound = this.toInbound(); return inbound.genLink(this.address, this.remark, clientIndex); } + get genInboundLinks() { const inbound = this.toInbound(); return inbound.genInboundLinks(this.address, this.remark); @@ -175,8 +173,12 @@ class AllSetting { this.webBasePath = "/"; this.tgBotEnable = false; this.tgBotToken = ""; - this.tgBotChatId = 0; - this.tgRunTime = ""; + this.tgBotChatId = ""; + this.tgRunTime = "@daily"; + this.tgBotBackup = false; + this.tgExpireDiff = ""; + this.tgTrafficDiff = ""; + this.tgCpu = ""; this.xrayTemplateConfig = ""; this.timeLocation = "Asia/Tehran"; |
