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>2024-03-11 12:30:00 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-03-11 12:30:00 +0300
commit01cd7539f91d3dc77114a9387d5b856bdbbdbeda (patch)
treec8aee9f7bdb7195df73079c88c221e95443c30e5 /web/assets/js
parent102864525cab2b8dc443dcc8ebf9e72798a79d64 (diff)
New - gRPC Authority
Diffstat (limited to 'web/assets/js')
-rw-r--r--web/assets/js/model/xray.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index c8a4184c..9d863798 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -446,16 +446,19 @@ class QuicStreamSettings extends XrayCommonClass {
class GrpcStreamSettings extends XrayCommonClass {
constructor(
serviceName="",
+ authority="",
multiMode=false,
) {
super();
this.serviceName = serviceName;
+ this.authority = authority;
this.multiMode = multiMode;
}
static fromJson(json={}) {
return new GrpcStreamSettings(
json.serviceName,
+ json.authority,
json.multiMode
);
}
@@ -463,6 +466,7 @@ class GrpcStreamSettings extends XrayCommonClass {
toJson() {
return {
serviceName: this.serviceName,
+ authority: this.authority,
multiMode: this.multiMode,
}
}
@@ -1240,6 +1244,7 @@ class Inbound extends XrayCommonClass {
obj.path = this.stream.quic.key;
} else if (network === 'grpc') {
obj.path = this.stream.grpc.serviceName;
+ obj.authority = this.stream.grpc.authority;
if (this.stream.grpc.multiMode){
obj.type = 'multi'
}
@@ -1315,6 +1320,7 @@ class Inbound extends XrayCommonClass {
case "grpc":
const grpc = this.stream.grpc;
params.set("serviceName", grpc.serviceName);
+ params.set("authority", grpc.authority);
if(grpc.multiMode){
params.set("mode", "multi");
}
@@ -1434,6 +1440,7 @@ class Inbound extends XrayCommonClass {
case "grpc":
const grpc = this.stream.grpc;
params.set("serviceName", grpc.serviceName);
+ params.set("authority", grpc.authority);
if(grpc.multiMode){
params.set("mode", "multi");
}
@@ -1520,6 +1527,7 @@ class Inbound extends XrayCommonClass {
case "grpc":
const grpc = this.stream.grpc;
params.set("serviceName", grpc.serviceName);
+ params.set("authority", grpc.authority);
if(grpc.multiMode){
params.set("mode", "multi");
}