当 iDevice 使用 3G/UMTS/Edge 时检测已建立的 VPN
如果 iDevice 通过 WiFi 连接到互联网,我可以使用 kSCNetworkFlagsTransientConnection
检测 VPN 状态。效果很好。
但对于 3G/UMTS,该标志始终为真。
VPN 开/关都是 Reachability Flag Status: WR t----l-
。
当 iDevice 通过 3G/UMTS/EDGE 连接到互联网时,有办法检测 VPN 状态吗?
if the iDevice is connected to the internet via WiFi I'm able to detect VPN-status using kSCNetworkFlagsTransientConnection
. It works fine.
But in the case of 3G/UMTS this flag is always true.
VPN on/off is both Reachability Flag Status: WR t----l-
.
Is there a way to detect the VPN-status when the iDevice is connected to the internet via 3G/UMTS/EDGE ... ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果这仍然有价值。我找到了一个方法来测试。至少对于 IPSec 和 Juniper 来说,VPN 连接似乎会改变设备的代理设置:
当 VPN 未打开时,字典有 0 项。当 VPN 打开时,dict 具有与特定 VPN 连接相关的内容。
In case this is still of value. I found a way to test. At least for IPSec and Juniper it appears that the VPN connection alters the device's proxy settings:
When VPN is not on, dict has 0 items. When VPN is on, dict has a content relevant to the particular vpn connection.