a whole swath of fixes
commitdc7951a5a77b8fcd128ad7890ebc0fec54d49a43
authorRoger Dingledine <arma@torproject.org>
Tue, 20 Jul 2004 10:17:43 +0000 (20 10:17 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 20 Jul 2004 10:17:43 +0000 (20 10:17 +0000)
tree75f56162fd4990104cd5dd57909881ed40443996
parent63b476a63c13178d29bbbdd7173930eef1af0455
a whole swath of fixes

introduce an authdir_mode() macro to match the others.
don't initialize uptime to the number of seconds since 1970.
non-authoritative dirservers don't cache their directory on disk.
make only authdirservers use clique_mode.
only read approved-routers file if you're an authdirserver.
even authdirservers fetch a new directory in do_hup.
retry_all_connections() is now called retry_all_listeners().
router_parse_list_from_string() correctly reports the router number
  it's working on.
only call dirserv_add_own_fingerprint() and
   dirserv_add_descriptor() on startup if we're an authdirserver.
if AuthDir and !ORPort then fail.
if AuthDir and ClientOnly then fail.

svn:r2061
src/or/config.c
src/or/connection.c
src/or/dirserv.c
src/or/main.c
src/or/or.h
src/or/router.c
src/or/routerparse.c