Saves the DNS proxy configuration in the caller's DNS proxy preferences.
- iOS 11.0+
- macOS 10.15+Beta
- Mac Catalyst 13.0+Beta
A block called when the save operation completes. If the operation fails, an error instance passed to this block describes the problem. Otherwise, the error is
NEDNSProxyfor the list of possible errors.
If you alter the DNS proxy configuration that you load into the proxy manager's properties using a call to the
load method, you must then call the
save method to make the changes take effect. Saving also stores the modified configuration for the next time the proxy is started or the configuration loaded.
Trying to save preferences before loading them produces an error.
If the DNS proxy is enabled, it becomes active as a result of this call.