diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-11-12 13:31:42 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-11-12 13:31:42 +0300 |
| commit | 111bfe5d2e3d391f52dc11811c4efb0663323d7d (patch) | |
| tree | 49854fa992c883866040a118a85527ce65fec727 | |
| parent | 6e59aa14b0c37bb8070a8a8caa2bb7d6949561f6 (diff) | |
ShadowSocks - ivCheck
| -rw-r--r-- | web/assets/js/model/inbound.js | 8 | ||||
| -rw-r--r-- | web/html/xui/form/protocol/shadowsocks.html | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js index ea6f56fa..41121b66 100644 --- a/web/assets/js/model/inbound.js +++ b/web/assets/js/model/inbound.js @@ -2198,13 +2198,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 = {}) { @@ -2214,6 +2216,7 @@ Inbound.ShadowsocksSettings = class extends Inbound.Settings { json.password, json.network, json.clients.map(client => Inbound.ShadowsocksSettings.Shadowsocks.fromJson(client)), + json.ivCheck, ); } @@ -2222,7 +2225,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 b55a3d5c..1190b672 100644 --- a/web/html/xui/form/protocol/shadowsocks.html +++ b/web/html/xui/form/protocol/shadowsocks.html @@ -43,5 +43,8 @@ <a-select-option value="udp">UDP</a-select-option> </a-select> </a-form-item> + <a-form-item label='ivCheck'> + <a-switch v-model="inbound.settings.ivCheck"></a-switch> + </a-form-item> </a-form> {{end}} |
