Add workaround for new Tor configuration requirement
[mirror/dsa-puppet.git] / modules / onion / templates / torrc-header.erb
1 <%- if scope.function_has_role(['onionbalance']) -%>
2 # Workaround https://trac.torproject.org/projects/tor/ticket/27849
3 # FIXME: remove this when the bug is fixed
4 SocksPort 9050
5 <%- else -%>
6 SocksPort 0
7 <%- end -%>
8 Log notice syslog
9
10 <%- if has_variable?("tor_ge_0_2_9") && @tor_ge_0_2_9 -%>
11 #HiddenServiceSingleHopMode 1
12 #HiddenServiceNonAnonymousMode 1
13 <%- end -%>
14
15