summaryrefslogtreecommitdiff
path: root/src/feature/control
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-12-04 13:33:07 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2019-12-04 13:33:07 +0200
commit2693bf47e8f98d38386d79e48d56ecbaaf781a02 (patch)
tree5c1ff222fb6b3e59c062d527cac111258a0e51df /src/feature/control
parent3b64c6b6fc1f41ccfae99b49a56f134ba6ee7662 (diff)
downloadtor-2693bf47e8f98d38386d79e48d56ecbaaf781a02.tar.gz
tor-2693bf47e8f98d38386d79e48d56ecbaaf781a02.zip
control-port: Include HS address in ONION_CLIENT_AUTH_VIEW reply.
Diffstat (limited to 'src/feature/control')
-rw-r--r--src/feature/control/control_hs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/feature/control/control_hs.c b/src/feature/control/control_hs.c
index 94940a7396..128893bc6c 100644
--- a/src/feature/control/control_hs.c
+++ b/src/feature/control/control_hs.c
@@ -239,7 +239,8 @@ encode_client_auth_cred_for_control_port(
goto err;
}
- smartlist_add_asprintf(control_line, "CLIENT x25519:%s", x25519_b64);
+ smartlist_add_asprintf(control_line, "CLIENT %s x25519:%s",
+ cred->onion_address, x25519_b64);
if (cred->flags) { /* flags are also optional */
if (cred->flags & CLIENT_AUTH_FLAG_IS_PERMANENT) {