summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-12-25 00:07:13 +0000
committerRoger Dingledine <arma@torproject.org>2007-12-25 00:07:13 +0000
commitc6788cc0de7b25ebb9872b31088e460a51e50584 (patch)
tree0d9b5926816d206ab5e5064c219b250bd8531035 /src
parent5925bc972ceeae2b9360098b42de9e49bb17babd (diff)
downloadtor-c6788cc0de7b25ebb9872b31088e460a51e50584.tar.gz
tor-c6788cc0de7b25ebb9872b31088e460a51e50584.zip
The bridge GeoIP stats were counting other relays, for example
self-reachability and authority-reachability tests. svn:r12960
Diffstat (limited to 'src')
-rw-r--r--src/or/connection_or.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index dd49af93c1..e9d9a877d0 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -906,7 +906,9 @@ connection_or_set_state_open(or_connection_t *conn)
}
router_set_status(conn->identity_digest, 1);
} else {
- geoip_note_client_seen(TO_CONN(conn)->addr, now);
+ /* only report it to the geoip module if it's not a known router */
+ if (!router_get_by_digest(conn->identity_digest))
+ geoip_note_client_seen(TO_CONN(conn)->addr, now);
}
if (conn->handshake_state) {
or_handshake_state_free(conn->handshake_state);