From 0f58d5912bfd99867859543548c0b0578660f8b2 Mon Sep 17 00:00:00 2001 From: Hossin Asaadi Date: Mon, 21 Nov 2022 21:01:07 +0330 Subject: [PATCH] fix bugs (#102) * [bug] fix xtls worng domain * [bug] fix vless tcp headerType and path * upgrade x-ui version * add log to default config --- config/version | 2 +- web/assets/js/model/xray.js | 2 ++ web/service/config.json | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/config/version b/config/version index cb0c939a..be14282b 100644 --- a/config/version +++ b/config/version @@ -1 +1 @@ -0.5.2 +0.5.3 diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 79843b4f..2b206931 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -974,6 +974,7 @@ class Inbound extends XrayCommonClass { params.set("type", this.stream.network); if (this.xtls) { params.set("security", "xtls"); + address = this.stream.tls.server; } else { params.set("security", this.stream.security); } @@ -988,6 +989,7 @@ class Inbound extends XrayCommonClass { const host = request.headers[index].value; params.set("host", host); } + params.set("headerType", 'http'); } break; case "kcp": diff --git a/web/service/config.json b/web/service/config.json index d1505959..5370fcf4 100644 --- a/web/service/config.json +++ b/web/service/config.json @@ -1,4 +1,9 @@ { + "log": { + "loglevel": "warning", + "access": "./access.log" + }, + "api": { "services": [ "HandlerService",