dos: Change the DoS heartbeat line format
commitc96465259a71741eb90486056a62376c3475007e
authorDavid Goulet <dgoulet@torproject.org>
Tue, 23 Feb 2021 13:54:45 +0000 (23 08:54 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 23 Feb 2021 13:54:45 +0000 (23 08:54 -0500)
tree34be04b2286099fccb8270df4ed2c622b75087cd
parent83ab6adb10d4e6e10eccbbb65120d3e9f1a675f6
dos: Change the DoS heartbeat line format

Fix a bug introduced in 94b56eaa7597e4a091a5b51d2c9032ea046631e3 which
overwrite the connection message line.

Furthermore, improve how we generate that line by using a smartlist and change
the format so it is clearer of what is being rejected/detected and, if
applicable, which option is disabled thus yielding no stats.

Closes #40308

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/changes40308 [new file with mode: 0644]
src/core/or/dos.c
src/test/test_status.c