For linux platform, add rustls support

This commit is contained in:
yuluo
2024-04-11 00:45:27 +08:00
parent 348890ae88
commit ff72cbf9a9
4 changed files with 197 additions and 25 deletions

View File

@@ -14,12 +14,11 @@ use std::{
pin::Pin,
task::{Context, Poll},
};
use log::info;
use tokio::{
io::{AsyncRead, AsyncWrite, ReadBuf},
net::{lookup_host, TcpListener, TcpSocket, ToSocketAddrs},
};
use tokio_socks::{tcp::Socks5Stream, IntoTargetAddr, ToProxyAddrs};
use tokio_socks::IntoTargetAddr;
use tokio_util::codec::Framed;
use crate::config::Socks5Server;
use crate::proxy::Proxy;