diff options
author | Roger Dingledine <arma@torproject.org> | 2004-12-06 06:14:45 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-12-06 06:14:45 +0000 |
commit | f00631e6b9f969d0091e949f65d8dda25893afa2 (patch) | |
tree | 3ad6d243f9b855c97f9b602b33a52879ff45445f | |
parent | f10f24a61ca1af93fc8b5f4113c8539b677ac46b (diff) | |
download | tor-f00631e6b9f969d0091e949f65d8dda25893afa2.tar.gz tor-f00631e6b9f969d0091e949f65d8dda25893afa2.zip |
answer resolved ip in network order
svn:r3087
-rw-r--r-- | src/or/connection_edge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 3a99008b2f..49d91f855a 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -392,7 +392,7 @@ static int connection_ap_handshake_process_socks(connection_t *conn) { return -1; } if (tor_inet_aton(socks->address, &in)) /* see if it's an IP already */ - answer = ntohl(in.s_addr); + answer = in.s_addr; if (!answer && !conn->chosen_exit_name) /* if it's not .exit, check cache */ answer = htonl(client_dns_lookup_entry(socks->address)); if (answer) { |