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:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-04-25 13:51:57 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-04-25 13:51:57 +0300
commit045717010a74fa609670caf495458d8ffc99f98f (patch)
tree556bddc679d4846375e2110c756b3f2305c0945b /web/assets/js
parentaae32d921163e21a202f572dd0c35316a49eb4bf (diff)
Revert "bug fix - h2 sub"
This reverts commit cd5ad78f56e4af870e204fdba87781baedbe0ce6.
Diffstat (limited to 'web/assets/js')
-rw-r--r--web/assets/js/model/xray.js6
1 files 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;