Skip to content

Commit caf2b9e

Browse files
authored
Update transport.md
1 parent f0d9907 commit caf2b9e

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

docs/config/proxies/transport.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,31 @@ Early Data 首包长度阈值
204204

205205
!!! note
206206
仅VLESS支持xhttp传输层,请勿在其他协议上使用
207+
208+
### xhttp-opts.path
209+
210+
请求路径
211+
212+
### xhttp-opts.host
213+
214+
主机名
215+
216+
### xhttp-opts.mode
217+
218+
模式,可选值:`auto`, `stream-one`, `stream-up` or `packet-up`
219+
220+
### xhttp-opts.headers
221+
222+
请求头
223+
224+
### xhttp-opts.no-grpc-header
225+
226+
设置stream-up/one上行是否发送`Content-Type: application/grpc`头伪装成 gRPC
227+
228+
### xhttp-opts.x-padding-bytes
229+
230+
客户端发的 request header 均默认包含 `Referer: ...?x_padding=XXX...` ,默认长度为 100-1000,每次请求随机,服务端默认会检查它是否在服务端允许的范围内
231+
232+
### xhttp-opts.sc-max-each-post-bytes
233+
234+
客户端每个 POST 最多携带多少数据,默认值 1000000 即 1MB,该值应小于 CDN 等 HTTP 中间盒所允许的最大值,服务端也会拒绝大于该值的 POST

0 commit comments

Comments
 (0)