Fix documentation for socks inbound (#42)

This commit is contained in:
rand0mgh0st 2022-08-27 05:16:04 +00:00 committed by GitHub
parent 0d8cfa3031
commit 3469df001f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,44 +36,44 @@ SOCKS users.
No authentication required if empty. No authentication required if empty.
### 监听字段 ### Listen Fields
#### listen #### listen
==必填== ==Required==
监听地址 Listen address.
#### listen_port #### listen_port
==必填== ==Required==
监听端口 Listen port.
#### tcp_fast_open #### tcp_fast_open
为监听器启用 TCP 快速打开 Enable tcp fast open for listener.
#### sniff #### sniff
启用协议探测。 Enable sniffing.
参阅 [协议探测](/zh/configuration/route/sniff/) See [Protocol Sniff](/configuration/route/sniff/) for details.
#### sniff_override_destination #### sniff_override_destination
用探测出的域名覆盖连接目标地址。 Override the connection destination address with the sniffed domain.
如果域名无效(如 Tor将不生效。 If the domain name is invalid (like tor), this will not work.
#### domain_strategy #### domain_strategy
可选值: `prefer_ipv4` `prefer_ipv6` `ipv4_only` `ipv6_only`. One of `prefer_ipv4` `prefer_ipv6` `ipv4_only` `ipv6_only`.
如果设置,请求的域名将在路由之前解析为 IP。 If set, the requested domain name will be resolved to IP before routing.
如果 `sniff_override_destination` 生效,它的值将作为后备。 If `sniff_override_destination` is in effect, its value will be taken as a fallback.
#### proxy_protocol #### proxy_protocol
解析连接头中的 [代理协议](https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt)。 Parse [Proxy Protocol](https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt) in the connection header.