Post

Replies

Boosts

Views

Activity

How to enable custom DNS settings from DNSSettingsManager on macOS?
Currently, I'm working on NEDNSSettingsManager on macOS. I succeeded in loading settings using loadFromPreferences(completionHandler:) - https://developer.apple.com/documentation/networkextension/nednssettingsmanager/3552344-loadfrompreferences, and also saving settings using saveToPreferences(completionHandler:) - https://developer.apple.com/documentation/networkextension/nednssettingsmanager/3552348-savetopreferences. Then, macOS' System Preferences showed "Not Running" and I couldn't enable it. How do I enable it on System Preferences? My code looks like the following. loadFromPreferences(completionHandler:) - https://github.com/***669/DNSecure/blob/cba9537ae4abca8a57444305dbdb31aaaeaab879/DNSecure/Views/ContentView.swift#L65 saveToPreferences(completionHandler:) - https://github.com/***669/DNSecure/blob/cba9537ae4abca8a57444305dbdb31aaaeaab879/DNSecure/Views/ContentView.swift#L85 On iOS, I can enable it on Settings app using the same code. Thank you.
5
0
1.1k
Jan ’21