pub struct ChainConfig {
pub proxies: Vec<ProxyEntry>,
pub chain_type: ChainType,
pub chain_len: usize,
pub chain_retries: usize,
pub connect_timeout: Duration,
pub localnets: Vec<LocalNet>,
pub dnats: Vec<DnatRule>,
pub tls_skip_verify: bool,
pub proxy_dead_threshold: usize,
}Expand description
Configuration for ChainEngine.
Fields§
§proxies: Vec<ProxyEntry>§chain_type: ChainType§chain_len: usizeNumber of proxies to use per connection (for Random / RoundRobin).
chain_retries: usizeHow many times to retry with a new chain selection after total failure.
Only applies to Random and RoundRobin chains, which select a subset
of proxies each attempt. Strict and Dynamic already try every proxy
in the list, so retrying would repeat the same sequence.
connect_timeout: Duration§localnets: Vec<LocalNet>§dnats: Vec<DnatRule>§tls_skip_verify: boolWhen true, TLS certificate validation is skipped for all HTTPS proxies.
Controlled by the --tls-skip-verify CLI flag. Defaults to false.
proxy_dead_threshold: usizeNumber of failures before a proxy is excluded from chain selection.
A proxy that fails (TCP connect or protocol handshake) this many times
across all connections is marked dead and skipped. Set to 0 to
disable the dead-proxy filter entirely. Default: 3.
Trait Implementations§
Source§impl Clone for ChainConfig
impl Clone for ChainConfig
Source§fn clone(&self) -> ChainConfig
fn clone(&self) -> ChainConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more