diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-11-21 17:26:25 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-11-21 17:26:25 +0300 |
| commit | b569c21fece25a587b9257ffca77a525d2194b76 (patch) | |
| tree | 1150c73e249bbfeceff49b6a96f36f5897a48f74 | |
| parent | c4a5c059e35a057a947f176555fc7e6365db0297 (diff) | |
XHTTP: noGRPCHeader
| -rw-r--r-- | web/assets/js/model/inbound.js | 4 | ||||
| -rw-r--r-- | web/html/xui/form/stream/stream_splithttp.html | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js index 0e403fce..8df6577e 100644 --- a/web/assets/js/model/inbound.js +++ b/web/assets/js/model/inbound.js @@ -537,6 +537,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass { cMaxLifetimeMs: 0 }, mode = MODE_OPTION.AUTO, + noGRPCHeader = false, ) { super(); this.path = path; @@ -549,6 +550,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass { this.xPaddingBytes = xPaddingBytes; this.xmux = xmux; this.mode = mode; + this.noGRPCHeader = noGRPCHeader; } addHeader(name, value) { @@ -571,6 +573,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass { json.xPaddingBytes, json.xmux, json.mode, + json.noGRPCHeader ); } @@ -591,6 +594,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass { cMaxLifetimeMs: this.xmux.cMaxLifetimeMs }, mode: this.mode, + noGRPCHeader: this.noGRPCHeader }; } } diff --git a/web/html/xui/form/stream/stream_splithttp.html b/web/html/xui/form/stream/stream_splithttp.html index 12cd3cac..2d5177bd 100644 --- a/web/html/xui/form/stream/stream_splithttp.html +++ b/web/html/xui/form/stream/stream_splithttp.html @@ -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}}
\ No newline at end of file |
