]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Generate service descriptors when PublishHidServDescriptors = 0
authorDonncha O'Cearbhaill <donncha@donncha.is>
Fri, 24 Jul 2015 13:36:31 +0000 (15:36 +0200)
committerDonncha O'Cearbhaill <donncha@donncha.is>
Tue, 25 Aug 2015 15:30:11 +0000 (17:30 +0200)
Removes a check to PublishHidServDescriptors in
rend_consider_services_upload(). This allows descriptors to be
generated and stored in the local cache when PublishHidServDescriptor = 0.

Keep the PublishHidServDescriptors option check in
rend_consider_descriptor_republication(). We will never need to republish
a descriptor if we are not publishing descriptors to the HSDirs.

src/or/rendservice.c

index 75d859d2eec24a9ab1725a736fa79656aeba662c..4f5ed07ccb56a1a80ccc31403627a12c4a073e03 100644 (file)
@@ -3652,9 +3652,6 @@ rend_consider_services_upload(time_t now)
                               MIN_REND_INITIAL_POST_DELAY_TESTING :
                               MIN_REND_INITIAL_POST_DELAY);
 
-  if (!get_options()->PublishHidServDescriptors)
-    return;
-
   for (i=0; i < smartlist_len(rend_service_list); ++i) {
     service = smartlist_get(rend_service_list, i);
     if (!service->next_upload_time) { /* never been uploaded yet */