aatxe / irc

the irc crate – usable, async IRC for Rust
Mozilla Public License 2.0
533 stars 99 forks source link

feature: Proxy Support #201

Closed tirz closed 4 years ago

tirz commented 4 years ago

Add a simple SOCKS5 proxy support with tokio-socks.

We must enable the proxy feature:

let config = Config {
    ...
    proxy_type: Some(ProxyType::Socks5),
    proxy_server: Some("127.0.0.1".to_owned()),
    proxy_port: Some(1080),
    ..Default::default()
};

Also, set use_ssl to true by default - avoiding MTIM attacks because of misconfigurations.