revert swap

This commit is contained in:
Gui.H 2021-06-17 08:38:08 +08:00
parent 43d15ff888
commit a7b6be89ee
5 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@
</PropertyGroup>
<ItemGroup>
<Compile Remove="AsyncSocketSwap.cs" />
<Compile Remove="AsyncSocketSwapV2.cs" />
<Compile Remove="Client\SuiDaoServer.cs.BASE.cs" />
<Compile Remove="Client\SuiDaoServer.cs.LOCAL.cs" />
<Compile Remove="Client\SuiDaoServer.cs.REMOTE.cs" />

View File

@ -59,7 +59,7 @@ namespace FastTunnel.Core.Handlers.Client
throw;
}
new AsyncSocketSwapV2(connecter.Socket, localConnecter.Socket).StartSwapAsync();
new AsyncSocketSwap(connecter.Socket, localConnecter.Socket).StartSwapAsync();
}
}
}

View File

@ -20,7 +20,7 @@ namespace FastTunnel.Core.Handlers.Client
var localConnecter_ssh = new Connecter(request_ssh.SSHConfig.LocalIp, request_ssh.SSHConfig.LocalPort, 5000);
localConnecter_ssh.Connect();
new AsyncSocketSwapV2(connecter_ssh.Socket, localConnecter_ssh.Socket).StartSwapAsync();
new AsyncSocketSwap(connecter_ssh.Socket, localConnecter_ssh.Socket).StartSwapAsync();
}
}
}

View File

@ -32,7 +32,7 @@ namespace FastTunnel.Core.Handlers.Server
server.RequestTemp.TryRemove(SwapMsg.msgId, out _);
// Join
new AsyncSocketSwapV2(request.CustomerClient, client)
new AsyncSocketSwap(request.CustomerClient, client)
.BeforeSwap(() =>
{
if (request.Buffer != null) client.Send(request.Buffer);

View File

@ -15,7 +15,7 @@
"BindPort": 1271,
// web穿
"WebDomain": "test.cc",
"WebDomain": "my.com",
// , 访url http://{SubDomain}.{Domain}:{ProxyPort_HTTP}/
// web穿