aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2012-02-09 11:12:30 +0100
committerKarsten Loesing <karsten.loesing@gmx.net>2012-02-09 11:12:30 +0100
commit4aca55efd2ac627a0311cd5cb00d5ad02e765da2 (patch)
tree57a72261af71070f58ed0abacd0d2c30dc516553 /src/or/connection_or.c
parentca431c54006341bf7097d2411b8742c4ab29e80d (diff)
downloadtor-4aca55efd2ac627a0311cd5cb00d5ad02e765da2.tar.gz
tor-4aca55efd2ac627a0311cd5cb00d5ad02e765da2.zip
Count IPv6 connections in bridge and entry stats.
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index a815928f6e..30d92b2728 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -1713,11 +1713,8 @@ connection_or_set_state_open(or_connection_t *conn)
} else {
/* only report it to the geoip module if it's not a known router */
if (!router_get_by_id_digest(conn->identity_digest)) {
- if (tor_addr_family(&TO_CONN(conn)->addr) == AF_INET) {
- /*XXXX IP6 support ipv6 geoip.*/
- uint32_t a = tor_addr_to_ipv4h(&TO_CONN(conn)->addr);
- geoip_note_client_seen(GEOIP_CLIENT_CONNECT, a, now);
- }
+ geoip_note_client_seen(GEOIP_CLIENT_CONNECT, &TO_CONN(conn)->addr,
+ now);
}
}