mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Log the source of a rejected POSTed v3 vote
Related to ticket 2683.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
o Minor features
|
||||
- Log the source of a rejected POSTed v3 networkstatus vote.
|
||||
|
||||
@@ -3259,6 +3259,8 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers,
|
||||
write_http_status_line(conn, status, "Vote stored");
|
||||
} else {
|
||||
tor_assert(msg);
|
||||
log_warn(LD_DIRSERV, "Rejected vote from %s (\"%s\").",
|
||||
conn->_base.address, msg);
|
||||
write_http_status_line(conn, status, msg);
|
||||
}
|
||||
goto done;
|
||||
|
||||
Reference in New Issue
Block a user