I have a transparent proxy as a subclass of NETransparentProxyProvider (Xcode 12.2beta3).
After setting up the NERules to receive TCP outbound traffic, my handleNewFlow override is called as expected.
In macOS 11 beta 9 handleNewFlow was getting IPv4 addresses in the flow.remoteEndpoint.host property for Safari browser connections but in macOS 11 beta 10 it gets hostnames
What is the best way to resolve the hostnames to IP addresses within the handleNewFlow override that would insure that the default resolver and any configured DSN proxies are used?
After setting up the NERules to receive TCP outbound traffic, my handleNewFlow override is called as expected.
In macOS 11 beta 9 handleNewFlow was getting IPv4 addresses in the flow.remoteEndpoint.host property for Safari browser connections but in macOS 11 beta 10 it gets hostnames
Code Block (e.g. www.apple.com)
rather than the IP addresses.What is the best way to resolve the hostnames to IP addresses within the handleNewFlow override that would insure that the default resolver and any configured DSN proxies are used?