Hi, I am using content filter network extension to allow/drop the network operations.
Here I want to get URL of the network flow. How can I achieve this? Please help me.
Below is sample content filter NE handleNewFlow().
Here I want to get URL of the network flow. How can I achieve this? Please help me.
Below is sample content filter NE handleNewFlow().
Code Block override func handleNewFlow(_ flow: NEFilterFlow) -> NEFilterNewFlowVerdict { guard let socketFlow = flow as? NEFilterSocketFlow, let remoteEndpoint = socketFlow.remoteEndpoint as? NWHostEndpoint, let localEndpoint = socketFlow.localEndpoint as? NWHostEndpoint else { return .allow() } }