From 27de7b030b823bcbff1e052a29e293c35d623a6e Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Mon, 27 Mar 2023 15:19:53 +0200 Subject: [PATCH] fix initiation of expirytime --- web/assets/js/model/xray.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 79186e32..ecc9c9d8 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -1431,7 +1431,7 @@ Inbound.VmessSettings = class extends Inbound.Settings { } }; Inbound.VmessSettings.Vmess = class extends XrayCommonClass { - constructor(id=RandomUtil.randomUUID(), alterId=0, email=RandomUtil.randomText(), totalGB=0, expiryTime='') { + constructor(id=RandomUtil.randomUUID(), alterId=0, email=RandomUtil.randomText(), totalGB=0, expiryTime=0) { super(); this.id = id; this.alterId = alterId; @@ -1514,7 +1514,7 @@ Inbound.VLESSSettings = class extends Inbound.Settings { }; Inbound.VLESSSettings.VLESS = class extends XrayCommonClass { - constructor(id=RandomUtil.randomUUID(), flow='', email=RandomUtil.randomText(), totalGB=0, expiryTime='') { + constructor(id=RandomUtil.randomUUID(), flow='', email=RandomUtil.randomText(), totalGB=0, expiryTime=0) { super(); this.id = id; this.flow = flow; @@ -1627,7 +1627,7 @@ Inbound.TrojanSettings = class extends Inbound.Settings { } }; Inbound.TrojanSettings.Trojan = class extends XrayCommonClass { - constructor(password=RandomUtil.randomSeq(10), flow='', email=RandomUtil.randomText(), totalGB=0, expiryTime='') { + constructor(password=RandomUtil.randomSeq(10), flow='', email=RandomUtil.randomText(), totalGB=0, expiryTime=0) { super(); this.password = password; this.flow = flow;