[or-cvs] r8357: fix typo, add log message (in tor/trunk/src: common or)

arma at seul.org arma at seul.org
Sat Sep 9 19:16:08 UTC 2006


Author: arma
Date: 2006-09-09 15:16:07 -0400 (Sat, 09 Sep 2006)
New Revision: 8357

Modified:
   tor/trunk/src/common/util.c
   tor/trunk/src/or/router.c
Log:
fix typo, add log message


Modified: tor/trunk/src/common/util.c
===================================================================
--- tor/trunk/src/common/util.c	2006-09-09 03:46:52 UTC (rev 8356)
+++ tor/trunk/src/common/util.c	2006-09-09 19:16:07 UTC (rev 8357)
@@ -1796,7 +1796,7 @@
 
   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;
   }
 

Modified: tor/trunk/src/or/router.c
===================================================================
--- tor/trunk/src/or/router.c	2006-09-09 03:46:52 UTC (rev 8356)
+++ tor/trunk/src/or/router.c	2006-09-09 19:16:07 UTC (rev 8357)
@@ -978,6 +978,8 @@
   }
   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 */



More information about the tor-commits mailing list