From: Nick Mathewson Date: Sun, 18 Jun 2006 08:13:45 +0000 (+0000) Subject: That dir_refresh_src fix will only work if I enable it. X-Git-Tag: tor-0.1.1.23~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c374340c7020d7c399754e3e3ffa190d3840c941;p=thirdparty%2Ftor.git That dir_refresh_src fix will only work if I enable it. svn:r6645 --- 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;