Skip to content

Commit

Permalink
Added DNSSec to Advanced VDSL Content WWW page
Browse files Browse the repository at this point in the history
  • Loading branch information
zaloisio committed Sep 19, 2021
1 parent 13a7010 commit 6899332
Showing 1 changed file with 34 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,11 @@ function initial(){
change_dnspriv_enable(0);
}
if(dnssec_support){
document.getElementById("dnssec_tr").style.display = "";
showhide("dnssec_strict_tr", "<% nvram_get("dnssec_enable"); %>" == "1" ? 1 : 0);
}
if(!dualWAN_support && !vdsl_support) {
document.getElementById("WANscap").style.display = "none";
}
Expand Down Expand Up @@ -628,7 +633,6 @@ function applyRule(){
document.form.action_script.value += ";restart_stubby";
}
/* GNUTON - do I need this?
if ((dnssec_support &&
(getRadioValue(document.form.dnssec_enable) != '<% nvram_get("dnssec_enable"); %>') ||
(getRadioValue(document.form.dnssec_check_unsigned_x) != '<% nvram_get("dnssec_check_unsigned_x"); %>')) ||
Expand All @@ -642,7 +646,7 @@ function applyRule(){
(getRadioValue(document.form.dns_fwd_local) != '<% nvram_get("dns_fwd_local"); %>') )
document.form.action_script.value += ";restart_dnsmasq";
*/
showLoading();
document.form.submit();
}
Expand Down Expand Up @@ -1673,6 +1677,34 @@ function change_wizard(o, id){
<div id="dns_server_list2" class="dns_server_list_dropdown"></div>
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(50,5);">Forward local domain queries to upstream DNS</a></th>
<td>
<input type="radio" value="1" name="dns_fwd_local" <% nvram_match("dns_fwd_local", "1", "checked"); %> /><#checkbox_Yes#>
<input type="radio" value="0" name="dns_fwd_local" <% nvram_match("dns_fwd_local", "0", "checked"); %> /><#checkbox_No#>
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(50,9);">Enable DNS Rebind protection</a></th>
<td>
<input type="radio" value="1" name="dns_norebind" <% nvram_match("dns_norebind", "1", "checked"); %> /><#checkbox_Yes#>
<input type="radio" value="0" name="dns_norebind" <% nvram_match("dns_norebind", "0", "checked"); %> /><#checkbox_No#>
</td>
</tr>
<tr id="dnssec_tr" style="display:none;">
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(50,6);">Enable DNSSEC support</a></th>
<td>
<input type="radio" value="1" name="dnssec_enable" onclick="showhide('dnssec_strict_tr',1);" <% nvram_match("dnssec_enable", "1", "checked"); %> /><#checkbox_Yes#>
<input type="radio" value="0" name="dnssec_enable" onclick="showhide('dnssec_strict_tr',0);" <% nvram_match("dnssec_enable", "0", "checked"); %> /><#checkbox_No#>
</td>
</tr>
<tr id="dnssec_strict_tr" style="display:none;">
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(50,25);">Validate unsigned DNSSEC replies</a></th>
<td>
<input type="radio" value="1" name="dnssec_check_unsigned_x" <% nvram_match("dnssec_check_unsigned_x", "1", "checked"); %> /><#checkbox_Yes#>
<input type="radio" value="0" name="dnssec_check_unsigned_x" <% nvram_match("dnssec_check_unsigned_x", "0", "checked"); %> /><#checkbox_No#>
</td>
</tr>
<tr id="dns_priv_override_tr">
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(50,31);">Prevent client auto DoH</a></th>
<td>
Expand Down

0 comments on commit 6899332

Please sign in to comment.