Add docs for PROXY protocol on freedom outbound

pull/472/head
Iain 2024-02-06 18:34:36 +08:00 committed by yuhan6665
parent d463d21334
commit 07a192dcf0
2 changed files with 14 additions and 2 deletions

View File

@ -13,7 +13,8 @@ Freedom 是一个出站协议,可以用来向任意网络发送(正常的)
"packets": "tlshello",
"length": "100-200",
"interval": "10-20" // 单位ms
}
},
"proxyProtocol": 0
}
```
@ -70,3 +71,9 @@ userLevel 的值, 对应 [policy](../policy.md#policyobject) 中 `level` 的值
`"length"`:分片包长 (byte)
`"interval"`分片间隔ms
> `proxyProtocol`: number
PROXY protocol 通常配合 `redirect` 重定向到开启了 PROXY protocol 协议的 Nginx 或其他后端服务中。如果后端服务不支持 PROXY protocol 协议,连接将会被断开。
proxyProtocol 的值为 PROXY protocol 版本号,可选 `1``2`,如不指定,默认为 `0` 不启用。

View File

@ -13,7 +13,8 @@ Freedom is an outbound protocol that can be used to send (normal) TCP or UDP dat
"packets": "tlshello",
"length": "100-200",
"interval": "10-20" // ms
}
},
"proxyProtocol": 0
}
```
@ -55,3 +56,7 @@ A key-value map used to control TCP fragmentationunder some circumstances it
`"length"`: length to make the cut
`"interval"`: time between fragmentsms
> `proxyProtocol`: number
The value of `proxyProtocol` represents the PROXY Protocol version. default value is `0`.