Skip to content
James58899 edited this page Jan 22, 2024 · 3 revisions

hath-rust can download cache files through a proxy.

Proxy only applies to downloads from the image server, so speed​​test, RPC, and downloader will not go through the proxy, but when the downloader fails to download from other clients fallbacks to the image server will be using the proxy.

Since the image server does not support connection reuse, placing a proxy server closer to the image server and enabling keep-alive can significantly improve request latency. It can also improve network connection to image servers is bad.

If the proxy cannot connect, it will automatically retry to download without using the proxy.

Currently only supports http(s) and socks5 proxy, not support socks4.

Example

http proxy:

hath-rust --proxy http://myproxy:8080

socks5 proxy:

hath-rust --proxy socks5://myproxy:8080

Because socks5 only forwards packets, it cannot reduce TCP handshake time by reusing connection, so it is not recommended to use socks5 unless the connect to the image server without proxy is bad.

Clone this wiki locally