I am implementing Network Extension - NEFilterDataProvider.
checking whether we get IP address and port for the flow in handleNewFlow ?
how do we fetch the IP address & Port in this type of Network Extension (socket level ) ??
any pointer would help
checking whether we get IP address and port for the flow in handleNewFlow ?
how do we fetch the IP address & Port in this type of Network Extension (socket level ) ??
any pointer would help
Check to see if you are getting the local or remote endpoints on the NEFilterSocketFlow?
Otherwise, check the incoming NEFilterFlow directly in handleNewFlow; There should be a lot of information on here.
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Code Block swift guard let socketFlow = flow as? NEFilterSocketFlow, let remoteEndpoint = socketFlow.remoteEndpoint as? NWHostEndpoint, let localEndpoint = socketFlow.localEndpoint as? NWHostEndpoint else { return .allow() }
Otherwise, check the incoming NEFilterFlow directly in handleNewFlow; There should be a lot of information on here.
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com