Skip to content

Commit

Permalink
unbound: fix indentation
Browse files Browse the repository at this point in the history
replaced tabs with four spaces
  • Loading branch information
schreibubi committed Apr 23, 2022
1 parent 70c1cdc commit ebd9ec8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/etc/inc/plugins.inc.d/unbound.inc
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ EOD;
$dohdot_settings = '';
if (isset($config['unbound']['enable_doh']) || isset($config['unbound']['enable_dot'])) {
$cert =& lookup_cert($config['unbound']['dohdot_cert']);
$chain = [];
$chain = [];
$ca_chain = ca_chain_array($cert);
if (is_array($ca_chain)) {
foreach ($ca_chain as $entry) {
Expand All @@ -346,11 +346,11 @@ EOD;
'/var/unbound/dohdot.key',
$cert['prv']
);
$dohdot_settings .= "# DoH and DoT\n";
if (isset($config['unbound']['enable_dot'])) {
$dohdot_settings .= "# DoH and DoT\n";
if (isset($config['unbound']['enable_dot'])) {
$dohdot_settings .= "tls-port: $port_dot\n";
}
if (isset($config['unbound']['enable_doh'])) {
if (isset($config['unbound']['enable_doh'])) {
$dohdot_settings .= "https-port: $port_doh\n";
}
$dohdot_settings .= "tls-service-key: /var/unbound/dohdot.key\n";
Expand Down
4 changes: 2 additions & 2 deletions src/opnsense/mvc/app/views/OPNsense/Unbound/stats.volt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

const descriptionNumQuery = {
'query': {
'type': {
'type': {
'A': "{{ lang._('A') }}",
'AAAA': "{{ lang._('AAAA') }}",
'CNAME': "{{ lang._('CNAME') }}",
Expand Down Expand Up @@ -171,7 +171,7 @@
// initial fetch
updateStats();

updateServiceControlUI('unbound');
updateServiceControlUI('unbound');
});
</script>

Expand Down

0 comments on commit ebd9ec8

Please sign in to comment.