Using NEFilterProvider, I'm able to look at the remoteEndpoint property for each network flow that comes from a socket. However, the hostname property is an IP address and not a URL/domain name, whereas doing the same for a flow that comes from a browser returns a URL. Is there a way to retrieve the domain name for a network flow that comes from the socket?
Post
Replies
Boosts
Views
Activity
When implementing the Network Extension Filter, I'm able to retrieve the full URL of a network flow in the NEFilterDataProvider part of the filter. I do this in the handleFlow overloaded method. However, I'm not able to do the same in the same method in the NEFilterControlProvider part of the filter. Instead of a full URL, it gives me a truncated host name. For example, the data provider part would have
https://www.google.com/search?q=search+terms&ie=UTF-8&oe=UTF-8&hl=en-us&client=safari
But the control provider would have
https://www.google.com/search
How would I be able to get the full URL in the control provider part?