aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-07-17 08:17:51 +0000
committerRoger Dingledine <arma@torproject.org>2006-07-17 08:17:51 +0000
commit542adb88d7eecf8691d2118ad1fe96dc9c9bacd7 (patch)
tree8da3997251901a12be759d42f00e84819889b475 /src/or
parentc055a34cdbf13a08ad685f41b018facbae7e2402 (diff)
downloadtor-542adb88d7eecf8691d2118ad1fe96dc9c9bacd7.tar
tor-542adb88d7eecf8691d2118ad1fe96dc9c9bacd7.tar.gz
Make a louder statement the first time we learn a guessed
IP address. svn:r6779
Diffstat (limited to 'src/or')
-rw-r--r--src/or/router.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/or/router.c b/src/or/router.c
index a4782138d..fc827f895 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -910,10 +910,15 @@ log_addr_has_changed(uint32_t prev, uint32_t cur)
in_cur.s_addr = htonl(cur);
tor_inet_ntoa(&in_cur, addrbuf_cur, sizeof(addrbuf_cur));
- log_info(LD_GENERAL,
- "Our IP Address has changed from %s to %s; "
- "rebuilding descriptor.",
- addrbuf_prev, addrbuf_cur);
+ if (prev)
+ log_info(LD_GENERAL,
+ "Our IP Address has changed from %s to %s; "
+ "rebuilding descriptor.",
+ addrbuf_prev, addrbuf_cur);
+ else
+ log_notice(LD_GENERAL,
+ "Guessed our IP address as %s.",
+ addrbuf_cur);
}
/** Check whether our own address as defined by the Address configuration