Sockopt: Update customSockopt
parent
cd75ad30f4
commit
8392b4c161
|
@ -738,13 +738,14 @@ PS: 如果有正常上网的域名流量被 AsIs 的 freedom 出站送过来,
|
||||||
|
|
||||||
> `customSockopt`: []
|
> `customSockopt`: []
|
||||||
|
|
||||||
一个数组,用于高级用户指定需要的任何 sockopt, 理论上上述所有与连接有关的设置均可以在此等价设置, 自然也可以设置Linux中存在但是核心未添加的其他选项,下方示例等价于核心中的 `"tcpcongestion": "bbr"`
|
一个数组,用于高级用户指定需要的任何 sockopt, 理论上上述所有与连接有关的设置均可以在此等价设置, 自然也可以设置存在但是核心未添加的其他选项。目前支持 Linux Winows Darwin 操作系统。下方示例等价于核心中的 `"tcpcongestion": "bbr"`
|
||||||
|
|
||||||
使用前请确保你了解 Linux Socket 编程。
|
使用前请确保你了解 Socket 编程。
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"customSockopt": [
|
"customSockopt": [
|
||||||
{
|
{
|
||||||
|
"system": "linux",
|
||||||
"type": "str",
|
"type": "str",
|
||||||
"level":"6",
|
"level":"6",
|
||||||
"opt": "13",
|
"opt": "13",
|
||||||
|
@ -753,6 +754,10 @@ PS: 如果有正常上网的域名流量被 AsIs 的 freedom 出站送过来,
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> `system`: ""
|
||||||
|
|
||||||
|
可选,指定生效的系统,如果运行的系统不匹配则跳过该 sockopt. 目前可选 `linux` `windows` `darwin` (全部小写). 若留空则直接执行
|
||||||
|
|
||||||
> `type`: ""
|
> `type`: ""
|
||||||
|
|
||||||
必填,设置的类型,目前可选int或str.
|
必填,设置的类型,目前可选int或str.
|
||||||
|
|
Loading…
Reference in New Issue