aboutsummaryrefslogtreecommitdiff
path: root/src/or/channel.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-03-26 19:47:48 -0400
committerNick Mathewson <nickm@torproject.org>2018-03-26 19:47:48 -0400
commitd96dc2060a0470a4607db6f2991ea7c2c3508e23 (patch)
tree8e397b2dbf7f2504f090bc23f530a4305586e2cf /src/or/channel.c
parent5278d72f97683c8c89117d5b7111eb5f84baa569 (diff)
parent841ed9dbb982d5b0ffb9a5b17b1e4bf2e02f95f2 (diff)
downloadtor-d96dc2060a0470a4607db6f2991ea7c2c3508e23.tar.gz
tor-d96dc2060a0470a4607db6f2991ea7c2c3508e23.zip
Merge branch 'maint-0.3.3'
Diffstat (limited to 'src/or/channel.c')
-rw-r--r--src/or/channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/channel.c b/src/or/channel.c
index a9483ee021..18fa1655a4 100644
--- a/src/or/channel.c
+++ b/src/or/channel.c
@@ -1849,8 +1849,8 @@ channel_do_open_actions(channel_t *chan)
circuit_build_times_network_is_live(get_circuit_build_times_mutable());
router_set_status(chan->identity_digest, 1);
} else {
- /* only report it to the geoip module if it's not a known router */
- if (!connection_or_digest_is_known_relay(chan->identity_digest)) {
+ /* only report it to the geoip module if it's a client */
+ if (channel_is_client(chan)) {
if (channel_get_addr_if_possible(chan, &remote_addr)) {
char *transport_name = NULL;
channel_tls_t *tlschan = BASE_CHAN_TO_TLS(chan);