Allow servers with no hostname or IP address to learn their IP address
commit9db7b2c0687a3ee28e96e0c0db6c2a3e7ef4c626
authorRoger Dingledine <arma@torproject.org>
Mon, 17 Jul 2006 06:35:06 +0000 (17 06:35 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 17 Jul 2006 06:35:06 +0000 (17 06:35 +0000)
tree08ce2b504d2a41655d2945304b3474733cad6b20
parent8868830ac5730e455bbc727893b2234b5f1f33fe
Allow servers with no hostname or IP address to learn their IP address
by asking the directory authorities. This code only kicks in when you
would normally have exited with a "no address" error.

This design is flawed, though, since the X-Your-Address-Is header is not
authenticated, and doing it this way introduces too many new attacks. The
right answer is to give IP address hints inside the HELLO cell; much of
this code can be reused when we switch.

svn:r6774
src/or/config.c
src/or/directory.c
src/or/or.h
src/or/router.c