Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-03-12 18:53:48 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-03-12 18:53:48 +0300
commit10f54cd9370a8be5676c59faeb02e662bbc4934b (patch)
tree9e5d3944c8d367c21f0d487cf186846aad569799 /web/assets/js
parentb21758e6a6be72925a005d636e742a1419ce5290 (diff)
[xray] add outbound sendThrough + warp typo fix
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/assets/js')
-rw-r--r--web/assets/js/model/outbound.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js
index 707e76c5..34055ef6 100644
--- a/web/assets/js/model/outbound.js
+++ b/web/assets/js/model/outbound.js
@@ -501,6 +501,7 @@ class Outbound extends CommonClass {
protocol=Protocols.VMess,
settings=null,
streamSettings = new StreamSettings(),
+ sendThrough,
mux = new Mux(),
) {
super();
@@ -508,6 +509,7 @@ class Outbound extends CommonClass {
this._protocol = protocol;
this.settings = settings == null ? Outbound.Settings.getSettings(protocol) : settings;
this.stream = streamSettings;
+ this.sendThrough = sendThrough;
this.mux = mux;
}
@@ -573,6 +575,7 @@ class Outbound extends CommonClass {
json.protocol,
Outbound.Settings.fromJson(json.protocol, json.settings),
StreamSettings.fromJson(json.streamSettings),
+ json.sendThrough,
Mux.fromJson(json.mux),
)
}
@@ -590,6 +593,7 @@ class Outbound extends CommonClass {
protocol: this.protocol,
settings: this.settings instanceof CommonClass ? this.settings.toJson() : this.settings,
streamSettings: stream,
+ sendThrough: this.sendThrough != "" ? this.sendThrough : undefined,
mux: this.mux?.enabled ? this.mux : undefined,
};
}