mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-11 13:48:11 -08:00
feat: support unix socket tunnel (for ios) (#1779)
Co-authored-by: Page Chen <pagechen04@gmail.com>
This commit is contained in:
1 parent
48c5c23f9b
commit
b590700540
4 files changed
+231
No files matched your search
@@ -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