From 045717010a74fa609670caf495458d8ffc99f98f Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 25 Apr 2023 14:21:57 +0330 Subject: [PATCH] Revert "bug fix - h2 sub" This reverts commit cd5ad78f56e4af870e204fdba87781baedbe0ce6. --- web/assets/js/model/xray.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 73782ae4..b66020f9 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -1009,7 +1009,7 @@ class Inbound extends XrayCommonClass { return this.network === "grpc"; } - get isHttp() { + get isH2() { return this.network === "http"; } @@ -1095,7 +1095,7 @@ class Inbound extends XrayCommonClass { return this.stream.tcp.request.getHeader("Host"); } else if (this.isWs) { return this.stream.ws.getHeader("Host"); - } else if (this.isHttp) { + } else if (this.isH2) { return this.stream.http.host[0]; } return null; @@ -1106,7 +1106,7 @@ class Inbound extends XrayCommonClass { return this.stream.tcp.request.path[0]; } else if (this.isWs) { return this.stream.ws.path; - } else if (this.isHttp) { + } else if (this.isH2) { return this.stream.http.path[0]; } return null;