feat: Add DOH option

pull/15/head
Karan Sharma 2021-03-03 10:15:41 +05:30
parent b17d162c24
commit 06bee3f09c
2 changed files with 6 additions and 2 deletions

View File

@ -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":

View File

@ -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>