]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
rewrite conn->address for GET commands as well as POST commands.
authorRoger Dingledine <arma@torproject.org>
Sun, 23 Jul 2006 06:41:02 +0000 (06:41 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 23 Jul 2006 06:41:02 +0000 (06:41 +0000)
svn:r6815

src/or/directory.c

index e8ff16f28d6b3576d4238e94f13ae709b6878827..c6af9b86a11ed602ff074f01955094b53c2679dd 100644 (file)
@@ -1673,7 +1673,6 @@ directory_handle_command_post(connection_t *conn, char *headers,
     return 0;
   }
   log_debug(LD_DIRSERV,"rewritten url as '%s'.", url);
-  http_set_address_origin(headers, conn);
 
   if (!strcmp(url,"/tor/")) { /* server descriptor post */
     const char *msg;
@@ -1754,6 +1753,7 @@ directory_handle_command(connection_t *conn)
     /* case 1, fall through */
   }
 
+  http_set_address_origin(headers, conn);
   //log_debug(LD_DIRSERV,"headers %s, body %s.", headers, body);
 
   if (!strncasecmp(headers,"GET",3))