fix Context
This commit is contained in:
parent
7602831ecf
commit
4842eb29ae
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user