Skip to content

Instantly share code, notes, and snippets.

View ZChronoss's full-sized avatar

ZChronoss

  • Indonesia
View GitHub Profile
enum DoHProtectionType {
case wifi
case cellular
case both
}
class DOHService {
static func setupDoH() {
// change the server url to your doh server's url
let serverUrl = "doh.example.com"
let manager = NEDNSSettingsManager.shared()
manager.loadFromPreferences { loadError in
// handles error
if let loadError = loadError {