XHTTP: noGRPCHeader

This commit is contained in:
mhsanaei 2024-11-21 17:56:25 +03:30
parent c4a5c059e3
commit b569c21fec
No known key found for this signature in database
GPG key ID: D875CD086CF668A0
2 changed files with 7 additions and 0 deletions

View file

@ -537,6 +537,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
cMaxLifetimeMs: 0 cMaxLifetimeMs: 0
}, },
mode = MODE_OPTION.AUTO, mode = MODE_OPTION.AUTO,
noGRPCHeader = false,
) { ) {
super(); super();
this.path = path; this.path = path;
@ -549,6 +550,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
this.xPaddingBytes = xPaddingBytes; this.xPaddingBytes = xPaddingBytes;
this.xmux = xmux; this.xmux = xmux;
this.mode = mode; this.mode = mode;
this.noGRPCHeader = noGRPCHeader;
} }
addHeader(name, value) { addHeader(name, value) {
@ -571,6 +573,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
json.xPaddingBytes, json.xPaddingBytes,
json.xmux, json.xmux,
json.mode, json.mode,
json.noGRPCHeader
); );
} }
@ -591,6 +594,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
cMaxLifetimeMs: this.xmux.cMaxLifetimeMs cMaxLifetimeMs: this.xmux.cMaxLifetimeMs
}, },
mode: this.mode, mode: this.mode,
noGRPCHeader: this.noGRPCHeader
}; };
} }
} }

View file

@ -55,5 +55,8 @@
<a-form-item label="Max Lifetime (ms)"> <a-form-item label="Max Lifetime (ms)">
<a-input v-model="inbound.stream.splithttp.xmux.cMaxLifetimeMs"></a-input> <a-input v-model="inbound.stream.splithttp.xmux.cMaxLifetimeMs"></a-input>
</a-form-item> </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> </a-form>
{{end}} {{end}}