summaryrefslogtreecommitdiff
path: root/templates/torrc.control.erb
blob: 7e10d4dfaba6ce76d47c68bba9f1533e4ae8e03e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# tor controller
<%- if port != '0' then -%>
ControlPort <%= port %>
<%- if cookie_authentication != '0' then -%>
CookieAuthentication 1
<%- if cookie_auth_file != '' then -%>
CookieAuthFile <%= cookie_auth_file %>
<%- end -%>
<%- if cookie_auth_file_group_readable != '' then -%>
CookieAuthFileGroupReadable <%= cookie_auth_file_group_readable %>
<%- end -%>
<%- else %->
HashedControlPassword <%= hashed_control_password %>
<%- end -%>
<%- end -%>