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:
Diffstat (limited to 'web/assets/js')
-rw-r--r--web/assets/js/model/outbound.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js
index 7f9882e0..c6fb6201 100644
--- a/web/assets/js/model/outbound.js
+++ b/web/assets/js/model/outbound.js
@@ -194,8 +194,7 @@ class WsStreamSettings extends CommonClass {
static fromJson(json={}) {
return new WsStreamSettings(
json.path,
- json.host,
- json.headers && !ObjectUtil.isEmpty(json.headers.Host) ? json.headers.Host : '',
+ json.host
);
}
@@ -289,8 +288,7 @@ class HttpUpgradeStreamSettings extends CommonClass {
static fromJson(json={}) {
return new HttpUpgradeStreamSettings(
json.path,
- json.host,
- json.headers && !ObjectUtil.isEmpty(json.headers.Host) ? json.headers.Host : '',
+ json.host
);
}