diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-04-25 00:49:07 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-04-25 00:49:07 +0300 |
| commit | cd5ad78f56e4af870e204fdba87781baedbe0ce6 (patch) | |
| tree | 904f91149249363e316f5f0bf24c92dd0334a7b7 | |
| parent | 04d85af40e9583cf52932350ab3976f392ea9fb6 (diff) | |
bug fix - h2 sub
| -rw-r--r-- | web/assets/js/model/xray.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index b66020f9..73782ae4 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 isH2() { + get isHttp() { 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.isH2) { + } else if (this.isHttp) { 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.isH2) { + } else if (this.isHttp) { return this.stream.http.path[0]; } return null; |
