Add code block and refine

This commit is contained in:
风扇滑翔翼 2024-07-10 11:45:35 +00:00 committed by GitHub
parent 9c928fc0d8
commit 455e806ffe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View File

@ -763,7 +763,7 @@ Xray-core v1.8.6 新增参数。<br>
使用前请确保你了解 Linux Socket 编程。 使用前请确保你了解 Linux Socket 编程。
``` ```json
"customSockopt": [ "customSockopt": [
{ {
"type": "str", "type": "str",
@ -774,19 +774,19 @@ Xray-core v1.8.6 新增参数。<br>
] ]
``` ```
>> `type`: "" > `type`: ""
必填设置的类型目前可选int或str. 必填设置的类型目前可选int或str.
>> `level`: "" > `level`: ""
可选协议级别用于指定生效范围默认为6, 即TCP. 可选协议级别用于指定生效范围默认为6, 即TCP.
>> `opt`: "" > `opt`: ""
操作的选项名称,使用十进制(此处示例为 TCP_CONGESTION 的值 定义为 0xd 转换为10进制即为13) 操作的选项名称,使用十进制(此处示例为 TCP_CONGESTION 的值 定义为 0xd 转换为10进制即为13)
>> `value`: "" > `value`: ""
要设置的选项值此处示例为设置为bbr. 要设置的选项值此处示例为设置为bbr.

View File

@ -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. Please make sure you understand Linux socket programming before using it.
``` ```json
"customSockopt": [ "customSockopt": [
{ {
"type": "str", "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`. 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. 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) 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. The option value to be set, the example here is set to bbr.