diff options
author | Roger Dingledine <arma@torproject.org> | 2007-05-08 09:13:30 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-05-08 09:13:30 +0000 |
commit | a201861dc2dd8bba838d936117e18fa113e2800f (patch) | |
tree | e4698ec6ad367a7499a28985d5c5af2f31a55e78 /src/or/router.c | |
parent | e4f40dd794591856e89723d3c852f94be3b92a52 (diff) | |
download | tor-a201861dc2dd8bba838d936117e18fa113e2800f.tar.gz tor-a201861dc2dd8bba838d936117e18fa113e2800f.zip |
use the new _PublishServerDescriptor to publish descriptors either
to v2 authorities or to bridge authorities, depending on config.
svn:r10137
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c index 42e1ce2fc0..b6c4ca69cb 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -764,6 +764,7 @@ router_upload_dir_desc_to_dirservers(int force) extrainfo_t *ei; char *msg; size_t desc_len, extra_len = 0, total_len; + authority_type_t auth = get_options()->_PublishServerDescriptor; ri = router_get_my_routerinfo(); if (!ri) { @@ -771,7 +772,7 @@ router_upload_dir_desc_to_dirservers(int force) return; } ei = router_get_my_extrainfo(); - if (get_options()->_PublishServerDescriptor == NO_AUTHORITY) + if (auth == NO_AUTHORITY) return; if (!force && !desc_needs_upload) return; @@ -787,7 +788,7 @@ router_upload_dir_desc_to_dirservers(int force) } msg[desc_len+extra_len] = 0; - directory_post_to_dirservers(DIR_PURPOSE_UPLOAD_DIR, V2_AUTHORITY, + directory_post_to_dirservers(DIR_PURPOSE_UPLOAD_DIR, auth, msg, desc_len, extra_len); tor_free(msg); } |