From 279e29a1f21acf24f98e67e29fafac89c120271d Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 16 Nov 2005 23:54:24 +0000 Subject: [PATCH] bugfix: the controller doesn't mention it's a .onion if it is. svn:r5400 --- src/or/control.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/or/control.c b/src/or/control.c index aa8f48eb73..cb97f5b261 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -2349,9 +2349,11 @@ write_stream_target_to_buf(connection_t *conn, char *buf, size_t len) 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;