fix(docs): add socks5h in install docs (#7086)

This commit is contained in:
Shun Zi 2021-03-07 18:06:27 +08:00 committed by GitHub
parent 1f6eb405a8
commit e397e11fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -351,7 +351,7 @@ RSSHub supports two caching methods: memory and redis
Partial routes have a strict anti-crawler policy, and can be configured to use proxy
`PROXY_PROTOCOL`: Using proxy, Supports socks, http, https
`PROXY_PROTOCOL`: Using proxy, Supports socks, socks5, socks5h, http, https, etc. See [socks-proxy-agent](https://www.npmjs.com/package/socks-proxy-agent) NPM package page and [source](https://github.com/TooTallNate/node-socks-proxy-agent/blob/master/src/agent.ts) for what these protocols mean. See also [cURL OOTW: SOCKS5](https://daniel.haxx.se/blog/2020/05/26/curl-ootw-socks5/) for reference.
`PROXY_HOST`: host or IP of the proxy

View File

@ -359,7 +359,7 @@ RSSHub 支持 `memory` 和 `redis` 两种缓存方式
#### 代理 URI
`PROXY_URI`: 代理 URI支持 socks4, socks5, http, https
`PROXY_URI`: 代理 URI支持 socks4, socks5(本地查询域名的 SOCKS5不推荐使用, socks5h传域名的 SOCKS5推荐使用以防止 DNS 污染或 DNS 泄露), http, https,具体以[socks-proxy-agent](https://www.npmjs.com/package/socks-proxy-agent) NPM 包的支持为准,也可参考[curl 中 SOCKS 代理协议的用法](https://daniel.haxx.se/blog/2020/05/26/curl-ootw-socks5/)。
> 代理 URI 的格式为:
>
@ -369,8 +369,8 @@ RSSHub 支持 `memory` 和 `redis` 两种缓存方式
> 一些示例:
>
> - `socks4://127.0.0.1:1080`
> - `socks5://user:pass@127.0.0.1:1080` (用户名为 `user`, 密码为 `pass`)
> - `socks://127.0.0.1:1080` (protocol 为 socks 时表示 `socks5`)
> - `socks5h://user:pass@127.0.0.1:1080` (用户名为 `user`, 密码为 `pass`)
> - `socks://127.0.0.1:1080` (protocol 为 socks 时表示 `socks5h`)
> - `http://127.0.0.1:8080`
> - `http://user:pass@127.0.0.1:8080`
> - `https://127.0.0.1:8443`