From efc7159e0841376a35dcdac3e737822d96c6f9e5 Mon Sep 17 00:00:00 2001 From: trinity-1686a Date: Tue, 10 Oct 2023 16:04:41 +0200 Subject: [PATCH 1/3] fix bridge transport statistics --- src/core/or/channeltls.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/core/or/channeltls.c b/src/core/or/channeltls.c index 1f5a466777..a79f5c36e8 100644 --- a/src/core/or/channeltls.c +++ b/src/core/or/channeltls.c @@ -360,13 +360,19 @@ channel_tls_handle_incoming(or_connection_t *orconn) /* Register it */ channel_register(chan); + char *transport_name = NULL; + if (channel_tls_get_transport_name_method(TLS_CHAN_TO_BASE(orconn->chan), + &transport_name) < 0) { + transport_name = NULL; + } /* Start tracking TLS connections in the DoS subsystem as soon as possible, * so we can protect against attacks that use partially open connections. */ geoip_note_client_seen(GEOIP_CLIENT_CONNECT, - &TO_CONN(orconn)->addr, NULL, + &TO_CONN(orconn)->addr, transport_name, time(NULL)); - dos_new_client_conn(orconn, NULL); + dos_new_client_conn(orconn, transport_name); + tor_free(transport_name); return chan; } From d4f32c83b56bf8c5a87498a4972be1464bd4f483 Mon Sep 17 00:00:00 2001 From: trinity-1686a Date: Thu, 12 Oct 2023 18:09:05 +0200 Subject: [PATCH 2/3] add change file --- changes/ticket40871 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changes/ticket40871 diff --git a/changes/ticket40871 b/changes/ticket40871 new file mode 100644 index 0000000000..14ef372e08 --- /dev/null +++ b/changes/ticket40871 @@ -0,0 +1,3 @@ + o Minor bugfixes (bridges, statistics): + - Correctly report statistics for client count over Pluggable transport. + Fixes bug 40871; bugfix on 0.4.8.8 From 1291d2fca76237a96e8dc7dcc36d40ea39ba29dc Mon Sep 17 00:00:00 2001 From: trinity-1686a Date: Wed, 6 Dec 2023 17:42:41 +0100 Subject: [PATCH 3/3] update changes file with correct introduced version --- changes/ticket40871 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changes/ticket40871 b/changes/ticket40871 index 14ef372e08..32a89eed99 100644 --- a/changes/ticket40871 +++ b/changes/ticket40871 @@ -1,3 +1,3 @@ o Minor bugfixes (bridges, statistics): - Correctly report statistics for client count over Pluggable transport. - Fixes bug 40871; bugfix on 0.4.8.8 + Fixes bug 40871; bugfix on 0.4.8.4