From 288a5606879b991363de7ce834618bf47e370612 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sat, 16 Nov 2024 15:54:00 +0100 Subject: [PATCH] ShadowSocks - ivCheck Co-Authored-By: MHSanaei --- web/assets/js/model/xray.js | 8 ++++++-- web/html/xui/form/protocol/shadowsocks.html | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index f3681b35..ec062822 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -1971,13 +1971,15 @@ Inbound.ShadowsocksSettings = class extends Inbound.Settings { method=SSMethods.BLAKE3_AES_256_GCM, password=RandomUtil.randomShadowsocksPassword(), network='tcp,udp', - shadowsockses=[new Inbound.ShadowsocksSettings.Shadowsocks()] + shadowsockses=[new Inbound.ShadowsocksSettings.Shadowsocks()], + ivCheck = false, ) { super(protocol); this.method = method; this.password = password; this.network = network; this.shadowsockses = shadowsockses; + this.ivCheck = ivCheck; } static fromJson(json={}) { @@ -1987,6 +1989,7 @@ Inbound.ShadowsocksSettings = class extends Inbound.Settings { json.password, json.network, json.clients.map(client => Inbound.ShadowsocksSettings.Shadowsocks.fromJson(client)), + json.ivCheck, ); } @@ -1995,7 +1998,8 @@ Inbound.ShadowsocksSettings = class extends Inbound.Settings { method: this.method, password: this.password, network: this.network, - clients: Inbound.ShadowsocksSettings.toJsonArray(this.shadowsockses) + clients: Inbound.ShadowsocksSettings.toJsonArray(this.shadowsockses), + ivCheck: this.ivCheck, }; } }; diff --git a/web/html/xui/form/protocol/shadowsocks.html b/web/html/xui/form/protocol/shadowsocks.html index 26d119f0..97af11ef 100644 --- a/web/html/xui/form/protocol/shadowsocks.html +++ b/web/html/xui/form/protocol/shadowsocks.html @@ -45,6 +45,9 @@ UDP + + + {{end}}