summaryrefslogtreecommitdiff
path: root/templates/torrc.directory.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/torrc.directory.erb')
-rw-r--r--templates/torrc.directory.erb11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/torrc.directory.erb b/templates/torrc.directory.erb
new file mode 100644
index 00000000..1af9f40f
--- /dev/null
+++ b/templates/torrc.directory.erb
@@ -0,0 +1,11 @@
+# directory listing
+<% if port != '0' -%>
+DirPort <%= @port %>
+<% end -%>
+<% listen_addresses.each do |listen_address| -%>
+DirListenAddress <%= listen_address %>
+<% end -%>
+<% if @port_front_page != '' -%>
+DirPortFrontPage <%= port_front_page %>
+<%- end -%>
+