mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
start using new renddesc code
svn:r4769
This commit is contained in:
+3
-5
@@ -433,11 +433,9 @@ directory_send_command(connection_t *conn, const char *platform,
|
||||
strlcpy(conn->rend_query, resource, sizeof(conn->rend_query));
|
||||
|
||||
httpcommand = "GET";
|
||||
tor_snprintf(url, sizeof(url), "/tor/rendezvous/%s", resource);
|
||||
/* XXXX011 Once directories understand versioned descriptors, switch to this
|
||||
* URL in order to get the most recent version */
|
||||
// tor_snprintf(url, sizeof(url), "/tor/rendezvous1/%s", resource);
|
||||
|
||||
/* Request the most recent versioned descriptor. */
|
||||
tor_snprintf(url, sizeof(url), "/tor/rendezvous1/%s", resource);
|
||||
//tor_snprintf(url, sizeof(url), "/tor/rendezvous/%s", resource);
|
||||
break;
|
||||
case DIR_PURPOSE_UPLOAD_RENDDESC:
|
||||
tor_assert(!resource);
|
||||
|
||||
@@ -1017,11 +1017,9 @@ rend_consider_services_upload(time_t now)
|
||||
service->desc_is_dirty < now-5)) {
|
||||
/* if it's time, or if the directory servers have a wrong service
|
||||
* descriptor and ours has been stable for 5 seconds, upload a
|
||||
* new one. */
|
||||
* new one of each format. */
|
||||
upload_service_descriptor(service, 0);
|
||||
/* XXXX011 NM Once directories understand versioned descriptors, enable
|
||||
* this. */
|
||||
// upload_service_descriptor(service, 1);
|
||||
upload_service_descriptor(service, 1);
|
||||
service->next_upload_time = now + rendpostperiod;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user