From 8259024fbe3f3d4f8dbd65357c895ffd1f93e41c Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Wed, 12 Jun 2024 22:33:33 +0200 Subject: [PATCH] Outbound - UoTVersion for SS --- web/assets/js/model/outbound.js | 5 ++++- web/html/xui/form/outbound.html | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index b282074f0..2f2a5ea25 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -950,13 +950,14 @@ Outbound.TrojanSettings = class extends CommonClass { } }; Outbound.ShadowsocksSettings = class extends CommonClass { - constructor(address, port, password, method, uot) { + constructor(address, port, password, method, uot, UoTVersion) { super(); this.address = address; this.port = port; this.password = password; this.method = method; this.uot = uot; + this.UoTVersion = UoTVersion; } static fromJson(json={}) { @@ -968,6 +969,7 @@ Outbound.ShadowsocksSettings = class extends CommonClass { servers[0].password, servers[0].method, servers[0].uot, + servers[0].UoTVersion, ); } @@ -979,6 +981,7 @@ Outbound.ShadowsocksSettings = class extends CommonClass { password: this.password, method: this.method, uot: this.uot, + UoTVersion: this.UoTVersion, }], }; } diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html index 20adb535a..c8b08321c 100644 --- a/web/html/xui/form/outbound.html +++ b/web/html/xui/form/outbound.html @@ -187,6 +187,9 @@ + + +