mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Generate service descriptors when PublishHidServDescriptors = 0
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.
This commit is contained in:
parent
e0b82e5968
commit
1d205163e8
@ -3652,9 +3652,6 @@ rend_consider_services_upload(time_t now)
|
|||||||
MIN_REND_INITIAL_POST_DELAY_TESTING :
|
MIN_REND_INITIAL_POST_DELAY_TESTING :
|
||||||
MIN_REND_INITIAL_POST_DELAY);
|
MIN_REND_INITIAL_POST_DELAY);
|
||||||
|
|
||||||
if (!get_options()->PublishHidServDescriptors)
|
|
||||||
return;
|
|
||||||
|
|
||||||
for (i=0; i < smartlist_len(rend_service_list); ++i) {
|
for (i=0; i < smartlist_len(rend_service_list); ++i) {
|
||||||
service = smartlist_get(rend_service_list, i);
|
service = smartlist_get(rend_service_list, i);
|
||||||
if (!service->next_upload_time) { /* never been uploaded yet */
|
if (!service->next_upload_time) { /* never been uploaded yet */
|
||||||
|
Loading…
Reference in New Issue
Block a user