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