packetFlow.value(forKeyPath: “socket.fileDescriptor“) as! Int
iOS进行VPN链接获取tunfd,iOS15无法正常创建连接,14正常!用以下方法获取://获取tunFdfuncgetTunFd()->Int32?{if#available(iOS15,*){varbuf=[CChar](repeating:0,count:Int(IFNAMSIZ))letutunPrefix="utun".utf8CString.dropLast()return(0...