ADDRMAP reversed IP bug
In the following control port debug log you'll see I look up the IP address of "grepular.com" three times in a row. Look how the octets of the IP address in the ADDRMAP responses are reversed in the second and third responses:
mike@alfa:~$ telnet localhost 9051
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
AUTHENTICATE XXXXX
250 OK
SETEVENTS addrmap
250 OK
RESOLVE grepular.com
250 OK
650 ADDRMAP grepular.com 178.79.145.246 "2012-05-01 01:21:07" EXPIRES="2012-05-01 00:21:07"
RESOLVE grepular.com
650 ADDRMAP grepular.com 246.145.79.178 "2012-05-01 01:21:07" EXPIRES="2012-05-01 00:21:07"
250 OK
RESOLVE grepular.com
650 ADDRMAP grepular.com 246.145.79.178 "2012-05-01 01:21:07" EXPIRES="2012-05-01 00:21:07"
250 OK
If I disconnect and reconnect, they're reversed from the very first response. If I restart Tor and try again, then the first response is correct, but the subsequent responses are all reversed again. This happens for any domain I test. The "tor-resolve" command doesn't display this problem. I'm running version "0.2.3.14-alpha"
Trac:
Username: mickeyc