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