diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2011-04-20 17:01:41 -0700 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-04-28 18:10:17 -0400 |
commit | ddd1b7be2dce0845e6c08dcb5404ae65940b9edb (patch) | |
tree | 10b4438829d0ab01ecc9c83656d557bdbe027ab4 /src | |
parent | df5c7fedbd938c5d4634eadcf53693e07d2c8182 (diff) | |
download | tor-ddd1b7be2dce0845e6c08dcb5404ae65940b9edb.tar tor-ddd1b7be2dce0845e6c08dcb5404ae65940b9edb.tar.gz |
Ignore SIGNAL NEWNYM on relay-only Tor instances
Diffstat (limited to 'src')
-rw-r--r-- | src/or/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index 3bf21693f..a26be39fd 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -842,6 +842,13 @@ run_connection_housekeeping(int i, time_t now) static void signewnym_impl(time_t now) { + or_options_t *options = get_options(); + if (!proxy_mode(options)) { + log_info(LD_CONTROL, "Ignoring SIGNAL NEWNYM because client functionality " + "is disabled."); + return; + } + circuit_expire_all_dirty_circs(); addressmap_clear_transient(); rend_cache_purge(); |