From f8bddd48de7d8180116f5b7ce019a91dd06d022f Mon Sep 17 00:00:00 2001 From: proshir Date: Wed, 2 Nov 2022 01:47:09 +0330 Subject: [PATCH] add vless limit ip --- web/assets/js/model/xray.js | 6 ++++- web/html/xui/form/protocol/vless.html | 34 +++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index ecdf9e27..2bce6a83 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -1215,16 +1215,20 @@ Inbound.VLESSSettings = class extends Inbound.Settings { }; Inbound.VLESSSettings.VLESS = class extends XrayCommonClass { - constructor(id=RandomUtil.randomUUID(), flow=FLOW_CONTROL.DIRECT) { + constructor(id=RandomUtil.randomUUID(), flow=FLOW_CONTROL.DIRECT, email='', limitIp) { super(); this.id = id; this.flow = flow; + this.email = email; + this.limitIp = limitIp; } static fromJson(json={}) { return new Inbound.VLESSSettings.VLESS( json.id, json.flow, + json.email, + json.limitIp ); } }; diff --git a/web/html/xui/form/protocol/vless.html b/web/html/xui/form/protocol/vless.html index 3e5a3a38..f02a4a8c 100644 --- a/web/html/xui/form/protocol/vless.html +++ b/web/html/xui/form/protocol/vless.html @@ -1,5 +1,39 @@ {{define "form/vless"}} + + + + + + + IP Count Limit + + + + + + + + + + + client IP log + + + + + + + + + + clear log + +