Commit b79d8590 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Include IPv6 consensus downloads in dirreq stats.

Fixes #18460.
parent 9fc472e1
Loading
Loading
Loading
Loading

changes/bug18460

0 → 100644
+4 −0
Original line number Diff line number Diff line
  o Minor bugfixes (statistics):
    - Include consensus downloads via IPv6 in directory-request statistics.
      Fixes bug 18480; bugfix on 4741aa4 in 0.2.3.14-alpha.
+1 −3
Original line number Diff line number Diff line
@@ -2956,10 +2956,8 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers,
    }

    if (1) {
      struct in_addr in;
      tor_addr_t addr;
      if (tor_inet_aton((TO_CONN(conn))->address, &in)) {
        tor_addr_from_ipv4h(&addr, ntohl(in.s_addr));
      if (tor_addr_parse(&addr, (TO_CONN(conn))->address) >= 0) {
        geoip_note_client_seen(GEOIP_CLIENT_NETWORKSTATUS,
                               &addr, NULL,
                               time(NULL));