mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 18:24:36 +00:00
Add fake tcp tunnel (experimental) (#1673)
support faketcp to avoid tcp-over-tcp problem. linux/macos/windows are supported. better to be used in internet env, the maximum performance is majorly limited by windivert/raw socket.
This commit is contained in:
@@ -534,6 +534,11 @@ pub mod tests {
|
||||
let tunnel = c_netns.run_async(|| connector.connect()).await.unwrap();
|
||||
println!("connect: {:?}", tunnel.info());
|
||||
|
||||
if connector.remote_url().scheme() == "faketcp" {
|
||||
// listener need some time to start capturing packet
|
||||
tokio::time::sleep(std::time::Duration::from_millis(100)).await;
|
||||
}
|
||||
|
||||
assert_eq!(
|
||||
url::Url::from(tunnel.info().unwrap().remote_addr.unwrap()),
|
||||
connector.remote_url(),
|
||||
|
||||
Reference in New Issue
Block a user