diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-06-18 08:13:45 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-06-18 08:13:45 +0000 |
commit | c374340c7020d7c399754e3e3ffa190d3840c941 (patch) | |
tree | fa72ba8db92a503311a54565546e3ac1a23df3ce | |
parent | 347bcec84a6706f41da4822a81b7ff5f797e2806 (diff) | |
download | tor-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.c | 5 |
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; |