summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-09-09 19:16:07 +0000
committerRoger Dingledine <arma@torproject.org>2006-09-09 19:16:07 +0000
commit5f6351ceb3d518a19fcf0a2927b140a6dc3d1cd3 (patch)
tree2a638068824b7505afe51e82f1229194888c6038
parent3fcbdd3e01acac11824ee63512e2a154eec0cb90 (diff)
downloadtor-5f6351ceb3d518a19fcf0a2927b140a6dc3d1cd3.tar.gz
tor-5f6351ceb3d518a19fcf0a2927b140a6dc3d1cd3.zip
fix typo, add log message
svn:r8357
-rw-r--r--src/common/util.c2
-rw-r--r--src/or/router.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index f6fa063e82..fe48097fde 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1796,7 +1796,7 @@ get_interface_address(uint32_t *addr)
if (connect(sock,(struct sockaddr *)&target_addr,sizeof(target_addr))<0) {
int e = tor_socket_errno(sock);
- log_warn(LD_NET, "connnect() failed: %s", tor_socket_strerror(e));
+ log_warn(LD_NET, "connect() failed: %s", tor_socket_strerror(e));
goto err;
}
diff --git a/src/or/router.c b/src/or/router.c
index 0c7e72a78d..96334f8aff 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -978,6 +978,8 @@ router_new_address_suggestion(const char *suggestion)
}
addr = ntohl(in.s_addr);
+ log_debug(LD_DIR, "Got X-Your-Address-Is: %s.", suggestion);
+
if (resolve_my_address(LOG_INFO, get_options(), &cur, NULL) >= 0) {
/* We're all set -- we already know our address. Great. */
last_guessed_ip = cur; /* store it in case we need it later */