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-12 20:15:33 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-03-12 20:15:33 +0300
commit4d07b99fe7aae86f228694f68ebce296291915cd (patch)
treeff54356f209746562586e5ca93b7e2430c1e100e
parent8b5fe0b018af70c5302966f1d3d4d9a1cdd82dad (diff)
Xray Outbound - Authority gRPC
-rw-r--r--web/assets/js/model/outbound.js6
-rw-r--r--web/html/xui/form/outbound.html3
2 files changed, 7 insertions, 2 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js
index 34055ef6..46390054 100644
--- a/web/assets/js/model/outbound.js
+++ b/web/assets/js/model/outbound.js
@@ -257,20 +257,22 @@ class QuicStreamSettings extends CommonClass {
}
class GrpcStreamSettings extends CommonClass {
- constructor(serviceName="", multiMode=false) {
+ constructor(serviceName="", multiMode=false, authority="") {
super();
this.serviceName = serviceName;
this.multiMode = multiMode;
+ this.authority = authority;
}
static fromJson(json={}) {
- return new GrpcStreamSettings(json.serviceName, json.multiMode);
+ return new GrpcStreamSettings(json.serviceName, json.multiMode,json.authority);
}
toJson() {
return {
serviceName: this.serviceName,
multiMode: this.multiMode,
+ authority: this.authority
}
}
}
diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html
index 6a968458..14bcc461 100644
--- a/web/html/xui/form/outbound.html
+++ b/web/html/xui/form/outbound.html
@@ -333,6 +333,9 @@
<a-form-item label='Service Name'>
<a-input v-model.trim="outbound.stream.grpc.serviceName"></a-input>
</a-form-item>
+ <a-form-item label="Authority">
+ <a-input v-model.trim="outbound.stream.grpc.authority"></a-input>
+ </a-form-item>
<a-form-item label='Multi Mode'>
<a-switch v-model="outbound.stream.grpc.multiMode"></a-switch>
</a-form-item>