diff options
author | Sathyanarayanan Gunasekaran <gsathya.ceg@gmail.com> | 2014-07-21 21:16:58 -0700 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-08-20 12:56:57 -0400 |
commit | a3fe8b11663a32f1f007bd7cb0b9656825093544 (patch) | |
tree | fb173032516f4abc75bc6b65313d0dacbe7f8121 /src | |
parent | b159ffb675a274b285acc55204eaf6e83cd72bf8 (diff) | |
download | tor-a3fe8b11663a32f1f007bd7cb0b9656825093544.tar.gz tor-a3fe8b11663a32f1f007bd7cb0b9656825093544.zip |
Warn if Tor is a relay and a HS
Closes 12908; see #8742
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 6bb620937a..c006bc2587 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -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) |