fix inbound路径

This commit is contained in:
anlicheng 2026-05-20 22:17:25 +08:00
parent ced138c3a5
commit 604dad0584
3 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ actor PacketInboundActor {
}
func handleData(_ data: SDLData) async {
let processor = SDLHoleDataProcessor(
let processor = PacketInboundProcessor(
networkAddress: self.networkAddress,
dataCipher: self.dataCipher,
policySnapshot: self.policyService.policySnapshot(),

View File

@ -1,5 +1,5 @@
//
// SDLHoleDataProcessor.swift
// PacketInboundProcessor.swift
// Tun
//
// Created by on 2026/4/14.
@ -7,7 +7,7 @@
import Foundation
final class SDLHoleDataProcessor {
final class PacketInboundProcessor {
enum ProcessingAction {
case sendARPReply(dstMac: Data, data: Data)
case appendARP(ip: UInt32, mac: Data)

View File

@ -117,7 +117,7 @@ actor PacketOutboundActor {
packetReaderTask?.cancel()
}
func handleTunPacket(_ packet: IPPacket) async {
func handleTunPacket(_ packet: IPPacket) {
let router = PacketOutboundRouter(networkAddress: self.networkAddress, exitNode: self.exitNode)
let decision = router.route(packet: packet)