aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/dos.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-03-17 23:11:31 +1000
committerteor <teor@torproject.org>2020-03-17 23:11:31 +1000
commit44f92e8e4278403b9e633668f8be70f197b6e8db (patch)
treefb28ada7d8d31423f3d8225af57fb6348d7b5bd9 /src/core/or/dos.c
parentc86d08e3e6a4210fb10ab0d00ba22bb9e9d1ffde (diff)
parent894ff2dc8422cb86312c512698acd76476224f87 (diff)
downloadtor-44f92e8e4278403b9e633668f8be70f197b6e8db.tar.gz
tor-44f92e8e4278403b9e633668f8be70f197b6e8db.zip
Merge remote-tracking branch 'tor-github/pr/1784'
Diffstat (limited to 'src/core/or/dos.c')
-rw-r--r--src/core/or/dos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/or/dos.c b/src/core/or/dos.c
index be64b6286e..5f99280030 100644
--- a/src/core/or/dos.c
+++ b/src/core/or/dos.c
@@ -680,7 +680,7 @@ dos_log_heartbeat(void)
/* Called when a new client connection has been established on the given
* address. */
void
-dos_new_client_conn(or_connection_t *or_conn)
+dos_new_client_conn(or_connection_t *or_conn, const char *transport_name)
{
clientmap_entry_t *entry;
@@ -701,7 +701,7 @@ dos_new_client_conn(or_connection_t *or_conn)
}
/* We are only interested in client connection from the geoip cache. */
- entry = geoip_lookup_client(&or_conn->real_addr, NULL,
+ entry = geoip_lookup_client(&or_conn->real_addr, transport_name,
GEOIP_CLIENT_CONNECT);
if (BUG(entry == NULL)) {
/* Should never happen because we note down the address in the geoip