From 26a0481d8275c6d7953aaeb72a316db69c150354 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 10 Apr 2023 14:33:50 +0330 Subject: http header bug fixed --- web/assets/js/model/xray.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'web/assets') diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 65f4bfd9..a7b43e3f 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -106,7 +106,6 @@ Object.freeze(XTLS_FLOW_CONTROL); Object.freeze(TLS_FLOW_CONTROL); Object.freeze(TLS_VERSION_OPTION); Object.freeze(TLS_CIPHER_OPTION); -Object.freeze(UTLS_FINGERPRINT); Object.freeze(ALPN_OPTION); class XrayCommonClass { @@ -177,7 +176,6 @@ class TcpStreamSettings extends XrayCommonClass { this.type = type; this.request = request; this.response = response; - this.acceptProxyProtocol = acceptProxyProtocol; } static fromJson(json={}) { @@ -185,9 +183,8 @@ class TcpStreamSettings extends XrayCommonClass { if (!header) { header = {}; } - return new TcpStreamSettings( + return new TcpStreamSettings(json.acceptProxyProtocol, header.type, - json.acceptProxyProtocol, TcpStreamSettings.TcpRequest.fromJson(header.request), TcpStreamSettings.TcpResponse.fromJson(header.response), ); @@ -201,7 +198,6 @@ class TcpStreamSettings extends XrayCommonClass { request: this.type === 'http' ? this.request.toJson() : undefined, response: this.type === 'http' ? this.response.toJson() : undefined, }, - acceptProxyProtocol: this.acceptProxyProtocol, }; } } @@ -994,6 +990,7 @@ class Inbound extends XrayCommonClass { case Protocols.VMESS: case Protocols.VLESS: case Protocols.TROJAN: + case Protocols.SHADOWSOCKS: return true; default: return false; -- cgit v1.2.3