From ddd1b7be2dce0845e6c08dcb5404ae65940b9edb Mon Sep 17 00:00:00 2001 From: Robert Ransom Date: Wed, 20 Apr 2011 17:01:41 -0700 Subject: Ignore SIGNAL NEWNYM on relay-only Tor instances --- src/or/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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(); -- cgit v1.2.3