summaryrefslogtreecommitdiff
path: root/templates/torrc.hidden_service.erb
diff options
context:
space:
mode:
authorLouis-Philippe VĂ©ronneau <pollito@riseup.net>2018-01-12 20:04:35 +0000
committerLouis-Philippe VĂ©ronneau <pollito@riseup.net>2018-01-12 20:04:35 +0000
commit0a14a7c84da9e48a3363ef6c3ace06f84c737330 (patch)
tree178b818e8409ce47fe158648c2afaad5e5e4a6db /templates/torrc.hidden_service.erb
parent7170dae37787ad213ace30648a5929a1171f7529 (diff)
parent01cfa7e013179f17d981ef8ca9822a8c3bd727ff (diff)
Merge branch 'v3hs' into 'master'
add v3 hidden service support See merge request shared-puppet-modules-group/tor!16
Diffstat (limited to 'templates/torrc.hidden_service.erb')
-rw-r--r--templates/torrc.hidden_service.erb8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/torrc.hidden_service.erb b/templates/torrc.hidden_service.erb
index 6672937..c7dbe9e 100644
--- a/templates/torrc.hidden_service.erb
+++ b/templates/torrc.hidden_service.erb
@@ -10,3 +10,11 @@ HiddenServiceDir <%= @data_dir %>/<%= @name %>
HiddenServicePort <%= port %>
<% end -%>
+<% if @v3 != false %>
+# hidden service v3 static
+HiddenServiceDir <%= @data_dir %>/<%= @name -%>3
+HiddenServiceVersion 3
+<% Array(@ports).each do |port| -%>
+HiddenServicePort <%= port %>
+<% end -%>
+<% end -%>