From 7eb334a5ad1ffb162289628e36e92e84138bd7d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=A1=E3=81=8B?= <88967758+chika0801@users.noreply.github.com> Date: Sun, 31 Mar 2024 02:53:31 +0800 Subject: [PATCH] Some corrections * Update wireguard.md * Update command.md * Update transport.md * Update routing.md * Update routing.md * Update transport.md * Update websocket.md * Update httpupgrade.md --- docs/config/transports/websocket.md | 4 ++-- docs/document/command.md | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/config/transports/websocket.md b/docs/config/transports/websocket.md index aa4a5d962..7df1c733b 100644 --- a/docs/config/transports/websocket.md +++ b/docs/config/transports/websocket.md @@ -16,9 +16,9 @@ Websocket 会识别 HTTP 请求的 X-Forwarded-For 头来覆写流量的源地 { "acceptProxyProtocol": false, "path": "/", - "host": "xray.com" + "host": "xray.com", "headers": { - "host": "xray.com" + "key": "value" } } ``` diff --git a/docs/document/command.md b/docs/document/command.md index 2288f44fe..dc718c008 100644 --- a/docs/document/command.md +++ b/docs/document/command.md @@ -64,6 +64,12 @@ The -dump flag tells Xray to print the merged config. 配置文件除了默认的 JSON 格式外,也可以使用 TOML 和 YAML。在不指定格式的前提下会通过文件扩展名识别。 ::: +``` + xray run -dump +``` + +用以输出多文件配置融合之后的结果。 + ### xray version 输出 Xray 版本、 Golang 版本等信息。