mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Merge branch 'maint-0.2.8'
This commit is contained in:
commit
9e57ffa520
4
changes/bug18460
Normal file
4
changes/bug18460
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
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.
|
||||||
|
|
@ -2960,10 +2960,8 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (1) {
|
if (1) {
|
||||||
struct in_addr in;
|
|
||||||
tor_addr_t addr;
|
tor_addr_t addr;
|
||||||
if (tor_inet_aton((TO_CONN(conn))->address, &in)) {
|
if (tor_addr_parse(&addr, (TO_CONN(conn))->address) >= 0) {
|
||||||
tor_addr_from_ipv4h(&addr, ntohl(in.s_addr));
|
|
||||||
geoip_note_client_seen(GEOIP_CLIENT_NETWORKSTATUS,
|
geoip_note_client_seen(GEOIP_CLIENT_NETWORKSTATUS,
|
||||||
&addr, NULL,
|
&addr, NULL,
|
||||||
time(NULL));
|
time(NULL));
|
||||||
|
Loading…
Reference in New Issue
Block a user