I am using NEFilterPacketProvider and I am able to get the provider to call startFilter correctly. However, I am unable to get the packetHandler closure to get called. What could be wrong?
override func startFilter(completionHandler: @escaping (Error?) -> Void) {
os_log("Started Packet Filter")
self.packetHandler = { (context, interface, direction, packetBytes, packetLength) in
os_log("Dropping packet")
return .drop
}
completionHandler(nil)
}
I am running the application within a macOS 10.16 VM in Xcode with SIP disabled.
5
0
1.1k