Starts the DNS proxy.
- iOS 11.0+
- macOS 10.15+
- Mac Catalyst 13.0+
A block that you must execute when the proxy is fully established, or when the proxy cannot be started due to an error. If the proxy is successfully established, the error parameter should be set to
nil. Otherwise, the error parameter passed to this block indicates the reason for failure.
NEDNSProxy must override this method to perform any necessary steps to ready the proxy for handling flows of network data.
The framework calls this method when a new proxy instance is created. You indicate that setup is complete by calling the completion handler with a
nil error parameter, or that setup failed by calling the completion handler with an error instance. You define the error domain and code.