From 455e806ffe56874f0b7c90e2ef7131338484665b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E6=89=87=E6=BB=91=E7=BF=94=E7=BF=BC?= Date: Wed, 10 Jul 2024 11:45:35 +0000 Subject: [PATCH] Add code block and refine --- docs/config/transport.md | 10 +++++----- docs/en/config/transport.md | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/config/transport.md b/docs/config/transport.md index 5ad8bd81c..1edd03ced 100644 --- a/docs/config/transport.md +++ b/docs/config/transport.md @@ -763,7 +763,7 @@ Xray-core v1.8.6 新增参数。
使用前请确保你了解 Linux Socket 编程。 -``` +```json "customSockopt": [ { "type": "str", @@ -774,19 +774,19 @@ Xray-core v1.8.6 新增参数。
] ``` ->> `type`: "" +> `type`: "" 必填,设置的类型,目前可选int或str. ->> `level`: "" +> `level`: "" 可选,协议级别,用于指定生效范围,默认为6, 即TCP. ->> `opt`: "" +> `opt`: "" 操作的选项名称,使用十进制(此处示例为 TCP_CONGESTION 的值 定义为 0xd 转换为10进制即为13) ->> `value`: "" +> `value`: "" 要设置的选项值,此处示例为设置为bbr. diff --git a/docs/en/config/transport.md b/docs/en/config/transport.md index 4b73188ef..25b9a2113 100644 --- a/docs/en/config/transport.md +++ b/docs/en/config/transport.md @@ -679,7 +679,7 @@ An array for advanced users to specify any sockopt. In theory, all the above con Please make sure you understand Linux socket programming before using it. -``` +```json "customSockopt": [ { "type": "str", @@ -690,19 +690,19 @@ Please make sure you understand Linux socket programming before using it. ] ``` ->> `type`: "" +> `type`: "" Required, the type of setting, valid values are `int` or `str`. ->> `level`: "" +> `level`: "" Optional, protocol level, used to specify the effective range, the default is `6`, which is TCP. ->> `opt`: "" +> `opt`: "" The option name of the operation, using decimal (the example here is that the value of `TCP_CONGESTION` is defined as `0xd` and converted to decimal is 13) ->> `value`: "" +> `value`: "" The option value to be set, the example here is set to bbr.