Explorar o código

answer resolved ip in network order

svn:r3087
Roger Dingledine %!s(int64=21) %!d(string=hai) anos
pai
achega
f00631e6b9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/or/connection_edge.c

+ 1 - 1
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) {