aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/daemon/hidden_service.pp1
-rw-r--r--templates/torrc.hidden_service.erb1
2 files changed, 2 insertions, 0 deletions
diff --git a/manifests/daemon/hidden_service.pp b/manifests/daemon/hidden_service.pp
index c827211..89e05a8 100644
--- a/manifests/daemon/hidden_service.pp
+++ b/manifests/daemon/hidden_service.pp
@@ -1,6 +1,7 @@
# hidden services definition
define tor::daemon::hidden_service(
$ports = [],
+ $version = 2,
$data_dir = $tor::daemon::data_dir,
$ensure = present ) {
diff --git a/templates/torrc.hidden_service.erb b/templates/torrc.hidden_service.erb
index 4dec0b2..f9170c9 100644
--- a/templates/torrc.hidden_service.erb
+++ b/templates/torrc.hidden_service.erb
@@ -1,5 +1,6 @@
# hidden service <%= @name %>
HiddenServiceDir <%= @data_dir %>/<%= @name %>
+HiddenServiceVersion <%= @version %>
<% @ports.each do |port| -%>
HiddenServicePort <%= port %>
<% end -%>