]> git.ipfire.org Git - thirdparty/tor.git/commit
Refactor resolve_my_address() so logs are more accurate / helpful
authorRoger Dingledine <arma@torproject.org>
Sun, 10 Feb 2013 21:45:48 +0000 (16:45 -0500)
committerRoger Dingledine <arma@torproject.org>
Mon, 11 Feb 2013 18:29:56 +0000 (13:29 -0500)
commit92ea0b86de30dafe392a2dcd2eb12d9ab83114a7
tree1cfb1df27350e7750914b3557ce1c811de4bb440
parentdfbb12cabf958f0ff2a1004761c22fc093c73dd0
Refactor resolve_my_address() so logs are more accurate / helpful

It returns the method by which we decided our public IP address
(explicitly configured, resolved from explicit hostname, guessed from
interfaces, learned by gethostname).

Now we can provide more helpful log messages when a relay guesses its IP
address incorrectly (e.g. due to unexpected lines in /etc/hosts). Resolves
ticket 2267.

While we're at it, stop sending a stray "(null)" in some cases for the
server status "EXTERNAL_ADDRESS" controller event. Resolves bug 8200.
changes/bug8200 [new file with mode: 0644]
changes/ticket2267 [new file with mode: 0644]
src/or/config.c
src/or/config.h
src/or/dirserv.c
src/or/router.c
src/or/routerlist.c