mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-01 04:12:13 +00:00
add support for unprivileged namespaces
This commit is contained in:
parent
5e99c9f874
commit
d351b5031c
11 changed files with 615 additions and 48 deletions
|
@ -7,6 +7,7 @@ use tokio::sync::Mutex;
|
|||
|
||||
#[async_trait::async_trait]
|
||||
pub(crate) trait ProxyHandler: Send + Sync {
|
||||
fn get_server_addr(&self) -> SocketAddr;
|
||||
fn get_session_info(&self) -> SessionInfo;
|
||||
fn get_domain_name(&self) -> Option<String>;
|
||||
async fn push_data(&mut self, event: IncomingDataEvent<'_>) -> std::io::Result<()>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue