diff options
author | Roger Dingledine <arma@torproject.org> | 2007-05-25 18:25:33 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-05-25 18:25:33 +0000 |
commit | 6e216ed7ef9818a092f74fb7751a5b6ebe7c3307 (patch) | |
tree | c6b6dd0219080f6af4c36eea32b698283e014b05 | |
parent | ba4969a59e568ae5f54a2cb16722c2f8404e2072 (diff) | |
download | tor-6e216ed7ef9818a092f74fb7751a5b6ebe7c3307.tar tor-6e216ed7ef9818a092f74fb7751a5b6ebe7c3307.tar.gz |
karsten got confused by private_connection, so try calling
it anonymized_connection instead.
svn:r10330
-rw-r--r-- | src/or/directory.c | 16 | ||||
-rw-r--r-- | src/or/or.h | 5 |
2 files changed, 11 insertions, 10 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 228386216..dd877ae3a 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -297,7 +297,7 @@ directory_get_from_dirserver(uint8_t purpose, const char *resource, void directory_initiate_command_routerstatus(routerstatus_t *status, uint8_t purpose, - int private_connection, + int anonymized_connection, const char *resource, const char *payload, size_t payload_len) @@ -317,7 +317,7 @@ directory_initiate_command_routerstatus(routerstatus_t *status, status->or_port, status->dir_port, status->version_supports_begindir, status->identity_digest, - purpose, private_connection, resource, + purpose, anonymized_connection, resource, payload, payload_len); } @@ -437,13 +437,13 @@ directory_initiate_command(const char *address, uint32_t addr, uint16_t or_port, uint16_t dir_port, int supports_begindir, const char *digest, uint8_t purpose, - int private_connection, const char *resource, + int anonymized_connection, const char *resource, const char *payload, size_t payload_len) { dir_connection_t *conn; or_options_t *options = get_options(); int want_to_tunnel = options->TunnelDirConns && supports_begindir && - !private_connection && or_port && + !anonymized_connection && or_port && fascist_firewall_allows_address_or(addr, or_port); tor_assert(address); @@ -451,8 +451,8 @@ directory_initiate_command(const char *address, uint32_t addr, tor_assert(dir_port); tor_assert(digest); - log_debug(LD_DIR, "private %d, want_to_tunnel %d.", - private_connection, want_to_tunnel); + log_debug(LD_DIR, "anonymized %d, want_to_tunnel %d.", + anonymized_connection, want_to_tunnel); switch (purpose) { case DIR_PURPOSE_FETCH_DIR: @@ -497,7 +497,7 @@ directory_initiate_command(const char *address, uint32_t addr, /* give it an initial state */ conn->_base.state = DIR_CONN_STATE_CONNECTING; - if (!private_connection && !want_to_tunnel) { + if (!anonymized_connection && !want_to_tunnel) { /* then we want to connect directly */ conn->dirconn_direct = 1; @@ -534,7 +534,7 @@ directory_initiate_command(const char *address, uint32_t addr, linked_conn = connection_ap_make_bridge(conn->_base.address, conn->_base.port, digest, - private_connection ? + anonymized_connection ? SOCKS_COMMAND_CONNECT : SOCKS_COMMAND_CONNECT_DIR); if (!linked_conn) { diff --git a/src/or/or.h b/src/or/or.h index 31d1c36f1..983fad801 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2572,7 +2572,7 @@ void directory_get_from_dirserver(uint8_t purpose, const char *resource, int retry_if_no_servers); void directory_initiate_command_routerstatus(routerstatus_t *status, uint8_t purpose, - int private_connection, + int anonymized_connection, const char *resource, const char *payload, size_t payload_len); @@ -2589,7 +2589,8 @@ void directory_initiate_command(const char *address, uint32_t addr, uint16_t or_port, uint16_t dir_port, int supports_begindir, const char *digest, uint8_t purpose, - int private_connection, const char *resource, + int anonymized_connection, + const char *resource, const char *payload, size_t payload_len); int dir_split_resource_into_fingerprints(const char *resource, |