mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 11:50:17 +00:00
Adds Cloudflare's DNS Privacy First option
This commit is contained in:
parent
b7c28af844
commit
6ef65510c8
1 changed files with 1 additions and 1 deletions
|
@ -707,7 +707,7 @@ setClientDNS() {
|
||||||
if [[ ${DNSchoices} != "Custom" ]]; then
|
if [[ ${DNSchoices} != "Custom" ]]; then
|
||||||
|
|
||||||
echo "::: Using ${DNSchoices} servers."
|
echo "::: Using ${DNSchoices} servers."
|
||||||
declare -A DNS_MAP=(["Google"]="8.8.8.8 8.8.4.4" ["OpenDNS"]="208.67.222.222 208.67.220.220" ["Level3"]="209.244.0.3 209.244.0.4" ["DNS.WATCH"]="84.200.69.80 84.200.70.40" ["Norton"]="199.85.126.10 199.85.127.10" ["FamilyShield"]="208.67.222.123 208.67.220.123")
|
declare -A DNS_MAP=(["Google"]="8.8.8.8 8.8.4.4" ["OpenDNS"]="208.67.222.222 208.67.220.220" ["Level3"]="209.244.0.3 209.244.0.4" ["DNS.WATCH"]="84.200.69.80 84.200.70.40" ["Norton"]="199.85.126.10 199.85.127.10" ["FamilyShield"]="208.67.222.123 208.67.220.123" ["CloudFlare"]="1.1.1.1 1.0.0.1")
|
||||||
|
|
||||||
OVPNDNS1=$(awk '{print $1}' <<< "${DNS_MAP["${DNSchoices}"]}")
|
OVPNDNS1=$(awk '{print $1}' <<< "${DNS_MAP["${DNSchoices}"]}")
|
||||||
OVPNDNS2=$(awk '{print $2}' <<< "${DNS_MAP["${DNSchoices}"]}")
|
OVPNDNS2=$(awk '{print $2}' <<< "${DNS_MAP["${DNSchoices}"]}")
|
||||||
|
|
Loading…
Reference in a new issue