Skip to content

Instantly share code, notes, and snippets.

Avatar

Stavros Schizas sschizas

View GitHub Profile
@sschizas
sschizas / DoHConfigurarion.swift
Created Dec 23, 2020
DNS-over-HTTPS (DoH) configuration enumeration to be used in `NWParameters.PrivacyContext`.
View DoHConfigurarion.swift
enum DoHConfigurarion: Hashable {
case adGuard
case alibaba
case cloudflare
case google
case openDNS
case quad9
var httpsURL: URL {
switch self {