mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-15 10:25:40 +00:00
feat: support unix socket tunnel (for ios) (#1779)
Co-authored-by: Page Chen <pagechen04@gmail.com>
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user