Преглед изворни кода

Log the source of a rejected POSTed v3 vote

Related to ticket 2683.
Robert Ransom пре 13 година
родитељ
комит
3af59dcaee
2 измењених фајлова са 5 додато и 0 уклоњено
  1. 3 0
      changes/bug2683a
  2. 2 0
      src/or/directory.c

+ 3 - 0
changes/bug2683a

@@ -0,0 +1,3 @@
+  o Minor features
+    - Log the source of a rejected POSTed v3 networkstatus vote.
+

+ 2 - 0
src/or/directory.c

@@ -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;