From e9392545d357f29221adbf7c797c22ebccf61dc6 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Thu, 21 May 2026 14:51:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=AE=E5=BD=95=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tun/{ => App}/PacketTunnelProvider.swift | 0 Tun/{ => App}/SDLRuntimeEnvironment.swift | 0 Tun/{ => Cipher}/SwCrypt.swift | 0 Tun/{ => Configuration}/SDLConfiguration.swift | 0 Tun/{ => Diagnostics}/SDLFlowTracer.swift | 0 Tun/{ => Diagnostics}/SDLLogger.swift | 0 Tun/{ => Errors}/SDLError.swift | 0 Tun/{ => Foundation}/DataExtension.swift | 0 Tun/{ => Foundation}/SDLThrottler.swift | 0 Tun/{ => Foundation}/SDLUtil.swift | 0 Tun/{ => Foundation}/UIntExtension.swift | 0 Tun/{ => Network}/NetworkInterface.swift | 0 Tun/{ => Network}/SDLIPV6AssistClient.swift | 0 Tun/{ => Network}/SDLNetworkMonitor.swift | 0 Tun/{ => Notification}/SDLTunnelAppNotifier.swift | 0 Tun/{Actors => Session}/SDLPuncherActor.swift | 0 Tun/{Actors => UDPHole}/SDLNATProberActor.swift | 0 Tun/UDPHole/SDLUDPHole.swift | 3 --- 18 files changed, 3 deletions(-) rename Tun/{ => App}/PacketTunnelProvider.swift (100%) rename Tun/{ => App}/SDLRuntimeEnvironment.swift (100%) rename Tun/{ => Cipher}/SwCrypt.swift (100%) rename Tun/{ => Configuration}/SDLConfiguration.swift (100%) rename Tun/{ => Diagnostics}/SDLFlowTracer.swift (100%) rename Tun/{ => Diagnostics}/SDLLogger.swift (100%) rename Tun/{ => Errors}/SDLError.swift (100%) rename Tun/{ => Foundation}/DataExtension.swift (100%) rename Tun/{ => Foundation}/SDLThrottler.swift (100%) rename Tun/{ => Foundation}/SDLUtil.swift (100%) rename Tun/{ => Foundation}/UIntExtension.swift (100%) rename Tun/{ => Network}/NetworkInterface.swift (100%) rename Tun/{ => Network}/SDLIPV6AssistClient.swift (100%) rename Tun/{ => Network}/SDLNetworkMonitor.swift (100%) rename Tun/{ => Notification}/SDLTunnelAppNotifier.swift (100%) rename Tun/{Actors => Session}/SDLPuncherActor.swift (100%) rename Tun/{Actors => UDPHole}/SDLNATProberActor.swift (100%) diff --git a/Tun/PacketTunnelProvider.swift b/Tun/App/PacketTunnelProvider.swift similarity index 100% rename from Tun/PacketTunnelProvider.swift rename to Tun/App/PacketTunnelProvider.swift diff --git a/Tun/SDLRuntimeEnvironment.swift b/Tun/App/SDLRuntimeEnvironment.swift similarity index 100% rename from Tun/SDLRuntimeEnvironment.swift rename to Tun/App/SDLRuntimeEnvironment.swift diff --git a/Tun/SwCrypt.swift b/Tun/Cipher/SwCrypt.swift similarity index 100% rename from Tun/SwCrypt.swift rename to Tun/Cipher/SwCrypt.swift diff --git a/Tun/SDLConfiguration.swift b/Tun/Configuration/SDLConfiguration.swift similarity index 100% rename from Tun/SDLConfiguration.swift rename to Tun/Configuration/SDLConfiguration.swift diff --git a/Tun/SDLFlowTracer.swift b/Tun/Diagnostics/SDLFlowTracer.swift similarity index 100% rename from Tun/SDLFlowTracer.swift rename to Tun/Diagnostics/SDLFlowTracer.swift diff --git a/Tun/SDLLogger.swift b/Tun/Diagnostics/SDLLogger.swift similarity index 100% rename from Tun/SDLLogger.swift rename to Tun/Diagnostics/SDLLogger.swift diff --git a/Tun/SDLError.swift b/Tun/Errors/SDLError.swift similarity index 100% rename from Tun/SDLError.swift rename to Tun/Errors/SDLError.swift diff --git a/Tun/DataExtension.swift b/Tun/Foundation/DataExtension.swift similarity index 100% rename from Tun/DataExtension.swift rename to Tun/Foundation/DataExtension.swift diff --git a/Tun/SDLThrottler.swift b/Tun/Foundation/SDLThrottler.swift similarity index 100% rename from Tun/SDLThrottler.swift rename to Tun/Foundation/SDLThrottler.swift diff --git a/Tun/SDLUtil.swift b/Tun/Foundation/SDLUtil.swift similarity index 100% rename from Tun/SDLUtil.swift rename to Tun/Foundation/SDLUtil.swift diff --git a/Tun/UIntExtension.swift b/Tun/Foundation/UIntExtension.swift similarity index 100% rename from Tun/UIntExtension.swift rename to Tun/Foundation/UIntExtension.swift diff --git a/Tun/NetworkInterface.swift b/Tun/Network/NetworkInterface.swift similarity index 100% rename from Tun/NetworkInterface.swift rename to Tun/Network/NetworkInterface.swift diff --git a/Tun/SDLIPV6AssistClient.swift b/Tun/Network/SDLIPV6AssistClient.swift similarity index 100% rename from Tun/SDLIPV6AssistClient.swift rename to Tun/Network/SDLIPV6AssistClient.swift diff --git a/Tun/SDLNetworkMonitor.swift b/Tun/Network/SDLNetworkMonitor.swift similarity index 100% rename from Tun/SDLNetworkMonitor.swift rename to Tun/Network/SDLNetworkMonitor.swift diff --git a/Tun/SDLTunnelAppNotifier.swift b/Tun/Notification/SDLTunnelAppNotifier.swift similarity index 100% rename from Tun/SDLTunnelAppNotifier.swift rename to Tun/Notification/SDLTunnelAppNotifier.swift diff --git a/Tun/Actors/SDLPuncherActor.swift b/Tun/Session/SDLPuncherActor.swift similarity index 100% rename from Tun/Actors/SDLPuncherActor.swift rename to Tun/Session/SDLPuncherActor.swift diff --git a/Tun/Actors/SDLNATProberActor.swift b/Tun/UDPHole/SDLNATProberActor.swift similarity index 100% rename from Tun/Actors/SDLNATProberActor.swift rename to Tun/UDPHole/SDLNATProberActor.swift diff --git a/Tun/UDPHole/SDLUDPHole.swift b/Tun/UDPHole/SDLUDPHole.swift index ee91ba3..86c674e 100644 --- a/Tun/UDPHole/SDLUDPHole.swift +++ b/Tun/UDPHole/SDLUDPHole.swift @@ -108,9 +108,6 @@ private final class SDLUDPHoleHandler: ChannelInboundHandler { var buffer = envelope.data let remoteAddress = envelope.remoteAddress - let bytesCount = buffer.readableBytes - SDLLogger.log("[SDLUDPHole] read data: \(bytesCount), from: \(remoteAddress.description)", for: .debug) - do { if let message = try SDLHoleMessage.decode(buffer: &buffer) { self.messageContinuation.yield((remoteAddress, message))