new: vless reverse

legacy reverse removed
This commit is contained in:
MHSanaei
2026-05-05 21:00:03 +02:00
parent 8177f6dc66
commit b2d32f588f
23 changed files with 99 additions and 395 deletions
+8 -1
View File
@@ -2616,27 +2616,34 @@ Inbound.VLESSSettings.VLESS = class extends Inbound.ClientBase {
constructor(
id = RandomUtil.randomUUID(),
flow = '',
reverseTag = '',
email, limitIp, totalGB, expiryTime, enable, tgId, subId, comment, reset, created_at, updated_at,
) {
super(email, limitIp, totalGB, expiryTime, enable, tgId, subId, comment, reset, created_at, updated_at);
this.id = id;
this.flow = flow;
this.reverseTag = reverseTag;
}
static fromJson(json = {}) {
return new Inbound.VLESSSettings.VLESS(
json.id,
json.flow,
json.reverse?.tag ?? '',
...Inbound.ClientBase.commonArgsFromJson(json),
);
}
toJson() {
return {
const json = {
id: this.id,
flow: this.flow,
...this._clientBaseToJson(),
};
if (this.reverseTag) {
json.reverse = { tag: this.reverseTag };
}
return json;
}
};