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