[or-cvs] And actually check the url when it exists. that might work ...
Nick Mathewson
nickm at seul.org
Sun Jun 18 08:16:07 UTC 2006
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv9403/src/or
Modified Files:
directory.c
Log Message:
And actually check the url when it exists. that might work better.
Index: directory.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/directory.c,v
retrieving revision 1.378
retrieving revision 1.379
diff -u -p -d -r1.378 -r1.379
--- directory.c 18 Jun 2006 08:13:45 -0000 1.378
+++ directory.c 18 Jun 2006 08:16:05 -0000 1.379
@@ -1522,6 +1522,10 @@ directory_handle_command_get(connection_
request_type = deflated?"/tor/server/d.z":"/tor/server/d";
else
request_type = "/tor/server/?";
+ 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;
tor_free(url);
if (res < 0)
write_http_status_line(conn, 404, msg);
@@ -1545,10 +1549,6 @@ directory_handle_command_get(connection_
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;
More information about the tor-commits
mailing list