浏览代码

bugfix: the controller doesn't mention it's a .onion if it is.

svn:r5400
Roger Dingledine 20 年之前
父节点
当前提交
279e29a1f2
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/or/control.c

+ 3 - 1
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;