From b79850d5748879109484a72615105c57a6de2d0a Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 21 Jan 2008 21:00:50 +0000 Subject: Make "ClientOnly 1" config option disable directory ports too. svn:r13213 --- src/or/connection.c | 2 +- src/or/main.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/or/connection.c b/src/or/connection.c index 757516c66f..31c9c170f0 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -1340,7 +1340,7 @@ retry_all_listeners(smartlist_t *replaced_conns, return -1; if (retry_listeners(CONN_TYPE_DIR_LISTENER, options->DirListenAddress, options->DirPort, "0.0.0.0", - replaced_conns, new_conns, 0, + replaced_conns, new_conns, options->ClientOnly, AF_INET)<0) return -1; if (retry_listeners(CONN_TYPE_AP_LISTENER, options->SocksListenAddress, diff --git a/src/or/main.c b/src/or/main.c index 607fed35cf..17ee14651f 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1053,7 +1053,6 @@ run_scheduled_events(time_t now) /** 3d. And every 60 seconds, we relaunch listeners if any died. */ if (!we_are_hibernating() && time_to_check_listeners < now) { - /* 0 means "only launch the ones that died." */ retry_all_listeners(NULL, NULL); time_to_check_listeners = now+60; } -- cgit v1.2.3-54-g00ecf