feat: Add DOH option
parent
b17d162c24
commit
06bee3f09c
|
@ -8,11 +8,12 @@ var app = new Vue({
|
||||||
apiErrorMessage: "",
|
apiErrorMessage: "",
|
||||||
queryName: "",
|
queryName: "",
|
||||||
queryType: "A",
|
queryType: "A",
|
||||||
nameserverName: "google",
|
nameserverName: "cloudflare",
|
||||||
customNSAddr: "",
|
customNSAddr: "",
|
||||||
nsAddrMap: {
|
nsAddrMap: {
|
||||||
"google": "8.8.8.8",
|
"google": "8.8.8.8",
|
||||||
"cloudflare": "1.1.1.1",
|
"cloudflare": "1.1.1.1",
|
||||||
|
"cloudflare-doh": "https://cloudflare-dns.com/dns-query",
|
||||||
"quad9": "9.9.9.9",
|
"quad9": "9.9.9.9",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -36,6 +37,8 @@ var app = new Vue({
|
||||||
return "tcp://8.8.8.8:53"
|
return "tcp://8.8.8.8:53"
|
||||||
case "cloudflare":
|
case "cloudflare":
|
||||||
return "tcp://1.1.1.1:53"
|
return "tcp://1.1.1.1:53"
|
||||||
|
case "cloudflare-doh":
|
||||||
|
return "https://cloudflare-dns.com/dns-query"
|
||||||
case "quad9":
|
case "quad9":
|
||||||
return "tcp://9.9.9.9:53"
|
return "tcp://9.9.9.9:53"
|
||||||
case "custom":
|
case "custom":
|
||||||
|
|
|
@ -83,8 +83,9 @@
|
||||||
<select v-model="nameserverName"
|
<select v-model="nameserverName"
|
||||||
class="block appearance-none w-full bg-grey-lighter border border-grey-lighter text-grey-darker py-3 px-4 pr-8 rounded"
|
class="block appearance-none w-full bg-grey-lighter border border-grey-lighter text-grey-darker py-3 px-4 pr-8 rounded"
|
||||||
id="grid-state">
|
id="grid-state">
|
||||||
<option value="google">Google</option>
|
|
||||||
<option value="cloudflare">Cloudflare</option>
|
<option value="cloudflare">Cloudflare</option>
|
||||||
|
<option value="cloudflare-doh">Cloudflare (DOH)</option>
|
||||||
|
<option value="google">Google</option>
|
||||||
<option value="quad9">Quad9</option>
|
<option value="quad9">Quad9</option>
|
||||||
<option value="custom">Custom</option>
|
<option value="custom">Custom</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Reference in New Issue