aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2009-10-27 02:26:58 -0400
committerRoger Dingledine <arma@torproject.org>2009-10-27 02:26:58 -0400
commit8c34e792630fa32a3f472d875e25e6f25078d7e0 (patch)
tree7a816f6ed93b25ae14d775bdeaed14fdb4e7d6f9 /src/or
parent19ddee5582bf6dc3d53cb31944de23277341eab6 (diff)
parentc8b27a8e9eed58ea1a8e8be36289b474f4942c11 (diff)
downloadtor-8c34e792630fa32a3f472d875e25e6f25078d7e0.tar
tor-8c34e792630fa32a3f472d875e25e6f25078d7e0.tar.gz
Merge commit 'karsten/log-1092'
Diffstat (limited to 'src/or')
-rw-r--r--src/or/rendservice.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index f00cfd44d..b6981d625 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -1553,6 +1553,7 @@ directory_post_to_hs_dir(rend_service_descriptor_t *renddesc,
}
for (j = 0; j < smartlist_len(responsible_dirs); j++) {
char desc_id_base32[REND_DESC_ID_V2_LEN_BASE32 + 1];
+ char *hs_dir_ip;
hs_dir = smartlist_get(responsible_dirs, j);
if (smartlist_digest_isin(renddesc->successful_uploads,
hs_dir->identity_digest))
@@ -1574,15 +1575,18 @@ directory_post_to_hs_dir(rend_service_descriptor_t *renddesc,
strlen(desc->desc_str), 0);
base32_encode(desc_id_base32, sizeof(desc_id_base32),
desc->desc_id, DIGEST_LEN);
+ hs_dir_ip = tor_dup_ip(hs_dir->addr);
log_info(LD_REND, "Sending publish request for v2 descriptor for "
"service '%s' with descriptor ID '%s' with validity "
"of %d seconds to hidden service directory '%s' on "
- "port %d.",
+ "%s:%d.",
safe_str(service_id),
safe_str(desc_id_base32),
seconds_valid,
hs_dir->nickname,
- hs_dir->dir_port);
+ hs_dir_ip,
+ hs_dir->or_port);
+ tor_free(hs_dir_ip);
/* Remember successful upload to this router for next time. */
if (!smartlist_digest_isin(successful_uploads, hs_dir->identity_digest))
smartlist_add(successful_uploads, hs_dir->identity_digest);