feat: support unix socket tunnel (for ios) (#1779)

Co-authored-by: Page Chen <pagechen04@gmail.com>
This commit is contained in:
Chenx Dust
2026-01-11 16:37:32 +08:00
committed by GitHub
parent 48c5c23f9b
commit b590700540
4 changed files with 231 additions and 0 deletions
+5
View File
@@ -50,6 +50,11 @@ pub fn get_listener_by_url(
Box::new(WSTunnelListener::new(l.clone()))
}
"faketcp" => Box::new(FakeTcpTunnelListener::new(l.clone())),
#[cfg(unix)]
"unix" => {
use crate::tunnel::unix::UnixSocketTunnelListener;
Box::new(UnixSocketTunnelListener::new(l.clone()))
}
_ => {
return Err(Error::InvalidUrl(l.to_string()));
}