back out a little bit of r11817 to preserve current behavior.

some other behavior changes left in.


svn:r11821
This commit is contained in:
Roger Dingledine 2007-10-09 21:12:48 +00:00
parent a5851939c0
commit 4f23045e58
2 changed files with 4 additions and 3 deletions

View File

@ -272,7 +272,7 @@ directory_get_from_dirserver(uint8_t dir_purpose, uint8_t router_purpose,
{
routerstatus_t *rs = NULL;
or_options_t *options = get_options();
int prefer_authority = dirserver_mode(options);
int prefer_authority = server_mode(options) && dirserver_mode(options);
int get_via_tor = purpose_needs_anonymity(dir_purpose, router_purpose);
authority_type_t type;
@ -2753,7 +2753,8 @@ dir_routerdesc_download_failed(smartlist_t *failed, int status_code,
{
char digest[DIGEST_LEN];
time_t now = time(NULL);
int server = dirserver_mode(get_options());
or_options_t *options = get_options();
int server = server_mode(options) && dirserver_mode(options);
if (!was_descriptor_digests)
return; /* FFFF should implement this someday */
SMARTLIST_FOREACH(failed, const char *, cp,

View File

@ -858,7 +858,7 @@ server_mode(or_options_t *options)
int
dirserver_mode(or_options_t *options)
{
if (options->ClientOnly) return 0;
// if (options->ClientOnly) return 0;
return options->DirPort != 0;
}