summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-11-03 11:58:57 +0000
committerintrigeri <intrigeri@boum.org>2016-11-03 11:58:57 +0000
commitbd6b6a2e6c0d3a09127d8b6a342195d6f924de44 (patch)
tree31b3770a74851f60fa81d146a3cbc751b4eb3432
parentda48eefac71773beeca1797c6bbda884c50c85d8 (diff)
Update template to really honor tor::daemon's safe_logging parameter.
Without this change, using tor::daemon with the default safe_logging parameter results in a "SafeLogging 1" line being added to torrc, which is obviously not the intent of this piece of code. Also, this change makes parameters lookup consistent with how it's done everywhere else in this ERB template.
-rw-r--r--templates/torrc.global.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/torrc.global.erb b/templates/torrc.global.erb
index f577673..a02afc8 100644
--- a/templates/torrc.global.erb
+++ b/templates/torrc.global.erb
@@ -12,8 +12,8 @@ Log notice syslog
Log <%= log_rule %>
<% end -%>
<% end -%>
-<%- if @safe_logging != 1 then -%>
-SafeLogging <%= @safe_logging %>
+<%- if (v=scope.lookupvar('tor::daemon::safe_logging')) != '1' then -%>
+SafeLogging <%= v %>
<%- end -%>
<% if (v=scope.lookupvar('tor::daemon::automap_hosts_on_resolve')) != '0' -%>