diff --git a/DnsServerCore/www/index.html b/DnsServerCore/www/index.html index adf6b36d..1bab4299 100644 --- a/DnsServerCore/www/index.html +++ b/DnsServerCore/www/index.html @@ -401,7 +401,7 @@
diff --git a/DnsServerCore/www/js/main.js b/DnsServerCore/www/js/main.js index dab96956..0e62a658 100644 --- a/DnsServerCore/www/js/main.js +++ b/DnsServerCore/www/js/main.js @@ -72,8 +72,21 @@ $(function () { if (itemText.indexOf("TLS") !== -1) $("#optDnsClientProtocol").val("TLS"); - else if ($("#optDnsClientProtocol").val() === "TLS") - $("#optDnsClientProtocol").val("UDP"); + else if (itemText.indexOf("HTTPS-JSON") !== -1) + $("#optDnsClientProtocol").val("HttpsJson"); + else if (itemText.indexOf("HTTPS") !== -1) + $("#optDnsClientProtocol").val("Https"); + else { + switch ($("#optDnsClientProtocol").val()) { + case "UDP": + case "TCP": + break; + + default: + $("#optDnsClientProtocol").val("UDP"); + break; + } + } }); $("#divNetworkProxy input").click(function () { @@ -325,6 +338,14 @@ function loadDnsSettings() { $("#rdForwarderProtocolTls").prop("checked", true); break; + case "https": + $("#rdForwarderProtocolHttps").prop("checked", true); + break; + + case "httpsjson": + $("#rdForwarderProtocolHttpJsons").prop("checked", true); + break; + default: $("#rdForwarderProtocolUdp").prop("checked", true); break;