mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-03-01 01:20:49 +03:00
parent
aae32d9211
commit
045717010a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user