dos: Exclude known relays from client connection count
commit666582a679cdfb2d69620db6aadf55a57d430e23
authorDavid Goulet <dgoulet@torproject.org>
Fri, 9 Feb 2018 16:11:41 +0000 (9 11:11 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Fri, 9 Feb 2018 16:13:04 +0000 (9 11:13 -0500)
treefc1e9d37cc0fc620e091f4b72bc4a276c47561c2
parent112638921b479f09bb473952c1870b27a0867971
dos: Exclude known relays from client connection count

This is to avoid positively identifying Exit relays if tor client connection
comes from them that is reentering the network.

One thing to note is that this is done only in the DoS subsystem but we'll
still add it to the geoip cache as a "client" seen. This is done that way so
to avoid as much as possible changing the current behavior of the geoip client
cache since this is being backported.

Closes #25193

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/dos.c