diff options
author | Roger Dingledine <arma@torproject.org> | 2005-08-26 07:41:19 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-08-26 07:41:19 +0000 |
commit | 893acb3acc8a340a7686eb09cb56bde7d75d6bd3 (patch) | |
tree | 80e651ca0bd4e150238e885a454fd87b3e03a271 /src/or/connection.c | |
parent | d5e426ab51b7fec1f7411da2c10b08d651846aee (diff) | |
download | tor-893acb3acc8a340a7686eb09cb56bde7d75d6bd3.tar.gz tor-893acb3acc8a340a7686eb09cb56bde7d75d6bd3.zip |
Make a new AssumeReachable config option that will publish anyway.
Also, let authdirservers start without setting their Address field.
Something is still not working though. Will fix in morning.
svn:r4839
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index ea627620ca..1adfc08a69 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -669,10 +669,9 @@ connection_handle_listener_read(connection_t *conn, int new_type) newconn->s = news; /* remember the remote address */ - newconn->address = tor_malloc(INET_NTOA_BUF_LEN); - tor_inet_ntoa(&remote.sin_addr, newconn->address, INET_NTOA_BUF_LEN); newconn->addr = ntohl(remote.sin_addr.s_addr); newconn->port = ntohs(remote.sin_port); + newconn->address = tor_dup_addr(newconn->addr); if (connection_add(newconn) < 0) { /* no space, forget it */ connection_free(newconn); |