ports/static mirror: if listen_addr are not explicitly set, use the host's public...
[mirror/dsa-puppet.git] / modules / onion / templates / torrc-header.erb
index 356431c..5756815 100644 (file)
@@ -1,9 +1,15 @@
+<%- if scope.function_has_role(['onionbalance']) -%>
+# Workaround https://trac.torproject.org/projects/tor/ticket/27849
+# FIXME: remove this when the bug is fixed
+SocksPort 9050
+<%- else -%>
 SocksPort 0
+<%- end -%>
 Log notice syslog
 
-<%- if has_variable?("tor_ge_0.2.9") && tor_ge_0.2.9 == "true" -%>
-HiddenServiceSingleHopMode 1
-HiddenServiceNonAnonymousMode 1
+<%- if has_variable?("tor_ge_0_2_9") && @tor_ge_0_2_9 -%>
+#HiddenServiceSingleHopMode 1
+#HiddenServiceNonAnonymousMode 1
 <%- end -%>