feat: Add DOH option
parent
b17d162c24
commit
06bee3f09c
|
@ -8,11 +8,12 @@ var app = new Vue({
|
|||
apiErrorMessage: "",
|
||||
queryName: "",
|
||||
queryType: "A",
|
||||
nameserverName: "google",
|
||||
nameserverName: "cloudflare",
|
||||
customNSAddr: "",
|
||||
nsAddrMap: {
|
||||
"google": "8.8.8.8",
|
||||
"cloudflare": "1.1.1.1",
|
||||
"cloudflare-doh": "https://cloudflare-dns.com/dns-query",
|
||||
"quad9": "9.9.9.9",
|
||||
}
|
||||
},
|
||||
|
@ -36,6 +37,8 @@ var app = new Vue({
|
|||
return "tcp://8.8.8.8:53"
|
||||
case "cloudflare":
|
||||
return "tcp://1.1.1.1:53"
|
||||
case "cloudflare-doh":
|
||||
return "https://cloudflare-dns.com/dns-query"
|
||||
case "quad9":
|
||||
return "tcp://9.9.9.9:53"
|
||||
case "custom":
|
||||
|
|
|
@ -83,8 +83,9 @@
|
|||
<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"
|
||||
id="grid-state">
|
||||
<option value="google">Google</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="custom">Custom</option>
|
||||
</select>
|
||||
|
|
Loading…
Reference in New Issue