Skip to content

Commit

Permalink
Xray Outbound - Authority gRPC
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Mar 12, 2024
1 parent 8b5fe0b commit 4d07b99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/assets/js/model/outbound.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions web/html/xui/form/outbound.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 4d07b99

Please sign in to comment.