diff options
author | Roger Dingledine <arma@torproject.org> | 2006-07-17 08:17:51 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-07-17 08:17:51 +0000 |
commit | 7c6c9b7fd3ef1eae25f84f4d12e6470b5b1ec7a4 (patch) | |
tree | d2430af2febd1a7ff17c8e976d0d311df5d6701f /trunk | |
parent | e1f2a318c8d3b43070e88c9e63ec01c9908da6b0 (diff) | |
download | tor-7c6c9b7fd3ef1eae25f84f4d12e6470b5b1ec7a4.tar.gz tor-7c6c9b7fd3ef1eae25f84f4d12e6470b5b1ec7a4.zip |
Make a louder statement the first time we learn a guessed
IP address.
svn:r6779
Diffstat (limited to 'trunk')
-rw-r--r-- | trunk/src/or/router.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/trunk/src/or/router.c b/trunk/src/or/router.c index a4782138d4..fc827f8954 100644 --- a/trunk/src/or/router.c +++ b/trunk/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 |