diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index ef5c4995c1..ecdf9e2740 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -1157,16 +1157,22 @@ Inbound.VmessSettings = class extends Inbound.Settings { } }; Inbound.VmessSettings.Vmess = class extends XrayCommonClass { - constructor(id=RandomUtil.randomUUID(), alterId=0) { + constructor(id=RandomUtil.randomUUID(), alterId=0, email='', limitIp=0) { super(); this.id = id; this.alterId = alterId; + this.email = email; + this.limitIp = limitIp; + } static fromJson(json={}) { return new Inbound.VmessSettings.Vmess( json.id, json.alterId, + json.email, + json.limitIp, + ); } }; diff --git a/web/html/xui/form/protocol/vmess.html b/web/html/xui/form/protocol/vmess.html index 280e6a6a71..ce23d4a3c9 100644 --- a/web/html/xui/form/protocol/vmess.html +++ b/web/html/xui/form/protocol/vmess.html @@ -1,5 +1,23 @@ {{define "form/vmess"}} + + + + + + + Ip Count Limit + + + + + + + + +