[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] bugfix: the controller doesn"t mention it"s a .onion if it ...



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

Modified Files:
	control.c 
Log Message:
bugfix: the controller doesn't mention it's a .onion if it is.


Index: control.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/control.c,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- control.c	5 Nov 2005 20:15:26 -0000	1.147
+++ control.c	16 Nov 2005 23:54:24 -0000	1.148
@@ -2349,9 +2349,11 @@
   if (conn->chosen_exit_name)
     if (tor_snprintf(buf2, sizeof(buf2), ".%s.exit", conn->chosen_exit_name)<0)
       return -1;
-  if (tor_snprintf(buf, len, "%s%s:%d",
+  if (tor_snprintf(buf, len, "%s%s%s:%d",
                    conn->socks_request->address,
                    conn->chosen_exit_name ? buf2 : "",
+                   !conn->chosen_exit_name &&
+                     connection_edge_is_rendezvous_stream(conn) ? ".onion" : "",
                    conn->socks_request->port)<0)
     return -1;
   return 0;