anytls 0.2.2

A proxy protocol that attempts to mitigate the TLS in TLS fingerprinting problem
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::time::Duration;
use tokio::net::TcpStream;
use tokio::time::timeout;

pub struct SystemDialer;

impl SystemDialer {
    pub async fn dial_context(addr: &str) -> Result<TcpStream, std::io::Error> {
        timeout(Duration::from_secs(5), TcpStream::connect(addr)).await?
    }
}