fix Context

This commit is contained in:
anlicheng 2025-07-14 23:26:24 +08:00
parent 7602831ecf
commit 4842eb29ae

View File

@ -35,7 +35,7 @@ class SDLContext {
// nat, // nat,
//var natAddress: SDLNatAddress? //var natAddress: SDLNatAddress?
// nat // nat
var natType: NatType = .blocked var natType: SDLNatProber.NatType = .blocked
// AES // AES
var aesCipher: AESCipher? var aesCipher: AESCipher?
@ -102,7 +102,7 @@ class SDLContext {
case .changed: case .changed:
// nat // nat
Task { Task {
self.natType = await self.getNatType() self.natType = await SDLNatProber.getNatType(udpHole: self.udpHole, config: self.config)
NSLog("didNetworkPathChanged, nat type is: \(self.natType)") NSLog("didNetworkPathChanged, nat type is: \(self.natType)")
} }
case .unreachable: case .unreachable: