summaryrefslogtreecommitdiff
path: root/provider_base/services/tor_hidden_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'provider_base/services/tor_hidden_service.rb')
-rw-r--r--provider_base/services/tor_hidden_service.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/provider_base/services/tor_hidden_service.rb b/provider_base/services/tor_hidden_service.rb
new file mode 100644
index 00000000..8b8eb24d
--- /dev/null
+++ b/provider_base/services/tor_hidden_service.rb
@@ -0,0 +1,4 @@
+if self.services.include?("tor_exit") || self.services.include?("tor_relay")
+ LeapCli.log :error, "service `tor_hidden_service` is not compatible with tor_exit or tor_relay (node #{self.name})."
+end
+self.tor['type'] = "hidden_service"