瀏覽代碼

fix some logs and comments

svn:r4864
Roger Dingledine 20 年之前
父節點
當前提交
77f52e3467
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/or/directory.c
  2. 1 1
      src/or/dirserv.c

+ 1 - 1
src/or/directory.c

@@ -1196,7 +1196,7 @@ directory_handle_command_post(connection_t *conn, char *headers,
         log_fn(LOG_NOTICE,"Rejected descriptor published by %s.", origin);
         break;
       case 0:
-        write_http_status_line(conn, 200, msg?msg:"Server okay, but not accepted.");
+        write_http_status_line(conn, 200, msg?msg:"Server descriptor okay, but not accepted.");
         break;
       case 1:
         dirserv_get_directory(&cp, 0); /* rebuild and write to disk */

+ 1 - 1
src/or/dirserv.c

@@ -330,7 +330,7 @@ dirserv_wants_to_reject_router(routerinfo_t *ri, int *verified,
  * origin of this descriptor, or to NULL.
  *
  * Return 1 if descriptor is well-formed and accepted;
- *  0 if well-formed and server is well-formed but rejected for timeliness.
+ *  0 if well-formed but redundant with one we already have;
  * -1 if it looks vaguely like a router descriptor but rejected;
  * -2 if we can't find a router descriptor in *desc.
  */