This commit is contained in:
MHSanaei
2023-08-26 21:06:23 +03:30
parent f3280b46fe
commit 149bd0ec51
6 changed files with 6 additions and 9 deletions

View File

@@ -1748,7 +1748,6 @@ Inbound.VmessSettings = class extends Inbound.Settings {
vmesses=[new Inbound.VmessSettings.Vmess()]) {
super(protocol);
this.vmesses = vmesses;
this.disableInsecure = disableInsecureEncryption;
}
indexOfVmessById(id) {
@@ -1773,14 +1772,12 @@ Inbound.VmessSettings = class extends Inbound.Settings {
return new Inbound.VmessSettings(
Protocols.VMESS,
json.clients.map(client => Inbound.VmessSettings.Vmess.fromJson(client)),
ObjectUtil.isEmpty(json.disableInsecureEncryption) ? false : json.disableInsecureEncryption,
);
}
toJson() {
return {
clients: Inbound.VmessSettings.toJsonArray(this.vmesses),
disableInsecureEncryption: this.disableInsecure,
};
}
};