]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Warn if Tor is a relay and a HS
authorSathyanarayanan Gunasekaran <gsathya.ceg@gmail.com>
Tue, 22 Jul 2014 04:16:58 +0000 (21:16 -0700)
committerNick Mathewson <nickm@torproject.org>
Wed, 20 Aug 2014 16:56:57 +0000 (12:56 -0400)
Closes 12908; see #8742

changes/bug12908 [new file with mode: 0644]
src/or/config.c

diff --git a/changes/bug12908 b/changes/bug12908
new file mode 100644 (file)
index 0000000..bd6784c
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor features:
+    - Warn about attempts to run hidden services and relays in the
+      same process: that's probably not a good idea. Closes ticket
+      12908.
index 6bb620937a1b973c3f67ae3569df4389afe7718e..c006bc258779bc39da1e14da23dbb3fa4864b456 100644 (file)
@@ -2563,6 +2563,13 @@ options_validate(or_options_t *old_options, or_options_t *options,
     REJECT("Can't use a relative path to torrc when RunAsDaemon is set.");
 #endif
 
+  if (server_mode(options) && options->RendConfigLines)
+    log_warn(LD_CONFIG,
+        "Tor is currently configured as a relay and a hidden service. "
+        "That's not very secure: you should probably run your hidden service "
+        "in a separate Tor process, at least -- see "
+        "https://trac.torproject.org/8742");
+
   /* XXXX require that the only port not be DirPort? */
   /* XXXX require that at least one port be listened-upon. */
   if (n_ports == 0 && !options->RendConfigLines)