From b23a2db947ec6a31bb03dc85de3e648c3fd4912f Mon Sep 17 00:00:00 2001 From: snltty <1069410172@qq.com> Date: Tue, 29 Oct 2024 21:26:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=85=8D=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linker.tunnel/TunnelTransfer.cs | 6 +++++- version.txt | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/linker.tunnel/TunnelTransfer.cs b/linker.tunnel/TunnelTransfer.cs index ebc908d7..d45a6114 100644 --- a/linker.tunnel/TunnelTransfer.cs +++ b/linker.tunnel/TunnelTransfer.cs @@ -256,7 +256,8 @@ namespace linker.tunnel try { ITunnelTransport _transports = transports.FirstOrDefault(c => c.Name == tunnelTransportInfo.TransportName && c.ProtocolType == tunnelTransportInfo.TransportType); - if (_transports != null) + TunnelTransportItemInfo item = tunnelAdapter.GetTunnelTransports().FirstOrDefault(c => c.Name == tunnelTransportInfo.TransportName && c.Disabled == false); + if (_transports != null && item != null) { OnConnectBegin(tunnelTransportInfo); ParseRemoteEndPoint(tunnelTransportInfo); @@ -268,6 +269,7 @@ namespace linker.tunnel else { connectingDic.TryRemove(tunnelTransportInfo.Remote.MachineId, out _); + _ = tunnelAdapter.SendConnectFail(tunnelTransportInfo); } } catch (Exception ex) @@ -278,6 +280,8 @@ namespace linker.tunnel LoggerHelper.Instance.Error(ex); } } + + } /// /// 收到对方发来的连接失败的消息 diff --git a/version.txt b/version.txt index 6043c555..a9fb52ee 100644 --- a/version.txt +++ b/version.txt @@ -1,5 +1,5 @@ v1.5.1 -2024-10-29 19:03:59 +2024-10-29 21:26:17 1. 优化点对网和网对网的局域网IP,包括禁用IP,和冲突检测 2. 一些UI优化 3. 新增socks5代理