Skip to content

Commit

Permalink
XHTTP: noGRPCHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Nov 21, 2024
1 parent c4a5c05 commit b569c21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/assets/js/model/inbound.js
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
cMaxLifetimeMs: 0
},
mode = MODE_OPTION.AUTO,
noGRPCHeader = false,
) {
super();
this.path = path;
Expand All @@ -549,6 +550,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
this.xPaddingBytes = xPaddingBytes;
this.xmux = xmux;
this.mode = mode;
this.noGRPCHeader = noGRPCHeader;
}

addHeader(name, value) {
Expand All @@ -571,6 +573,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
json.xPaddingBytes,
json.xmux,
json.mode,
json.noGRPCHeader
);
}

Expand All @@ -591,6 +594,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
cMaxLifetimeMs: this.xmux.cMaxLifetimeMs
},
mode: this.mode,
noGRPCHeader: this.noGRPCHeader
};
}
}
Expand Down
3 changes: 3 additions & 0 deletions web/html/xui/form/stream/stream_splithttp.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,8 @@
<a-form-item label="Max Lifetime (ms)">
<a-input v-model="inbound.stream.splithttp.xmux.cMaxLifetimeMs"></a-input>
</a-form-item>
<a-form-item label="No gRPC Header">
<a-switch v-model="inbound.stream.splithttp.noGRPCHeader"></a-switch>
</a-form-item>
</a-form>
{{end}}

0 comments on commit b569c21

Please sign in to comment.