[or-cvs] rewrite conn->address for GET commands as well as POST comm...

arma at seul.org arma at seul.org
Sun Jul 23 06:41:04 UTC 2006


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	directory.c 
Log Message:
rewrite conn->address for GET commands as well as POST commands.


Index: directory.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/directory.c,v
retrieving revision 1.393
retrieving revision 1.394
diff -u -p -d -r1.393 -r1.394
--- directory.c	17 Jul 2006 08:11:27 -0000	1.393
+++ directory.c	23 Jul 2006 06:41:02 -0000	1.394
@@ -1673,7 +1673,6 @@ directory_handle_command_post(connection
     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 *c
     /* 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))



More information about the tor-commits mailing list