Expand description
SOCKS5 proxy connector.
Provides Socks5Config that can be attached to a crate::Config
so every Telegram connection is routed through a SOCKS5 proxy.
§Example
use layer_client::{Config, proxy::Socks5Config};
use std::sync::Arc;
use layer_client::retry::AutoSleep;
let cfg = Config {
socks5: Some(Socks5Config::new("127.0.0.1:1080")),
..Default::default()
};Structs§
- Socks5
Config - SOCKS5 proxy configuration.