summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-06-18 08:13:45 +0000
committerNick Mathewson <nickm@torproject.org>2006-06-18 08:13:45 +0000
commitc374340c7020d7c399754e3e3ffa190d3840c941 (patch)
treefa72ba8db92a503311a54565546e3ac1a23df3ce
parent347bcec84a6706f41da4822a81b7ff5f797e2806 (diff)
downloadtor-c374340c7020d7c399754e3e3ffa190d3840c941.tar.gz
tor-c374340c7020d7c399754e3e3ffa190d3840c941.zip
That dir_refresh_src fix will only work if I enable it.
svn:r6645
-rw-r--r--src/or/directory.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 7da5aa4312..951b9e3ae2 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1418,6 +1418,7 @@ directory_handle_command_get(connection_t *conn, char *headers,
++d->refcnt;
/* Prime the connection with some data. */
+ conn->dir_refresh_src = DIR_REFRESH_CACHED_DIR;
connection_dirserv_flushed_some(conn);
return 0;
}
@@ -1544,6 +1545,10 @@ directory_handle_command_get(connection_t *conn, char *headers,
connection_write_to_buf(tmp, strlen(tmp), conn);
}
/* Prime the connection with some data. */
+ if (!strcmpstart(url, "/tor/server/d/"))
+ conn->dir_refresh_src = DIR_REFRESH_SERVER_BY_DIGEST;
+ else
+ conn->dir_refresh_src = DIR_REFRESH_SERVER_BY_FP;
connection_dirserv_flushed_some(conn);
}
return 0;