This commit is contained in:
snltty
2025-08-31 22:09:42 +08:00
parent c83e2e2051
commit 580045aea6
2 changed files with 14 additions and 1 deletions

View File

@@ -126,6 +126,19 @@ namespace linker.tunnel.transport
targetSocket.SendTo(authBytes, item);
}
var result = await targetSocket.ReceiveFromAsync(buffer, tempEP).WaitAsync(TimeSpan.FromMilliseconds(500)).ConfigureAwait(false);
targetSocket.SendTo(authBytes, result.RemoteEndPoint);
while (true)
{
try
{
await targetSocket.ReceiveFromAsync(buffer, tempEP).WaitAsync(TimeSpan.FromMilliseconds(1000)).ConfigureAwait(false);
}
catch (Exception)
{
break;
}
}
ISymmetricCrypto crypto = mode == TunnelMode.Client ? CryptoFactory.CreateSymmetric(tunnelTransportInfo.Remote.MachineId) : CryptoFactory.CreateSymmetric(tunnelTransportInfo.Local.MachineId);
return new TunnelConnectionUdp

View File

@@ -1,5 +1,5 @@
v1.9.1
2025-08-31 21:56:11
2025-08-31 22:09:42
1. 一些累计更新
2. 服务器转发多节点
3. 虚拟网卡下伪造ACK为TCP-in-TCP隧道提速