gpt4 book ai didi

ios - NEVPNManager 停止使用 iOS 14 测试版

转载 作者:行者123 更新时间:2023-12-03 20:50:07 25 4
gpt4 key购买 nike

我尝试在 iOS 14 测试版上运行我的应用程序。它在 iOS 13 上运行良好,但无法连接到 iOS 14 beta 上的任何服务器。 NEVPNManager.shared().connection.startVPNTunnel() 不会抛出任何错误并且 NEVPNStatus 与我连接的任何服务器断开连接。我在 iOS 14 上的 NEVPNManager 中找不到更改的内容。
这是我经理的配置:

let p = NEVPNProtocolIKEv2()
p.authenticationMethod = NEVPNIKEAuthenticationMethod.none
p.serverAddress = account.server
p.disconnectOnSleep = false
p.deadPeerDetectionRate = NEVPNIKEv2DeadPeerDetectionRate.medium
p.username = account.account
p.passwordReference = KeychainWrapper.passwordRefForVPNID()
p.disableMOBIKE = false
p.disableRedirect = false
p.enableRevocationCheck = false
p.enablePFS = false
p.useExtendedAuthentication = true
p.useConfigurationAttributeInternalIPSubnet = false
p.remoteIdentifier = account.server
p.localIdentifier = account.account

let manager = NEVPNManager.shared()
manager.protocolConfiguration = p
manager.isEnabled = true
let ruleConnect = NEOnDemandRuleConnect()
ruleConnect.probeURL = account.probeUrl
manager.onDemandRules = [ruleConnect]
manager.isOnDemandEnabled = true

最佳答案

Apple 似乎更改了 iOS 14 上的密码(有文档记录),您可以在此处看到一些线程:

https://developer.apple.com/forums/thread/659209
https://developer.apple.com/forums/thread/657792
https://developer.apple.com/forums/thread/657792
https://developer.apple.com/forums/thread/661298?page=2
如果你像我一样使用 StrongSwan,你可以通过更新你的 VPN 服务器的配置来修复它,只需设置 ike=aes256-sha2_256-modp2048esp=aes256-sha2_256 , 并重启 StrongSwan,然后它适用于 iOS 14。Refs: https://wiki.strongswan.org/projects/strongswan/wiki/AppleClients

关于ios - NEVPNManager 停止使用 iOS 14 测试版,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63287452/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com