소스 검색

If we are a directory, we should trust ourself.

svn:r1943
Nick Mathewson 21 년 전
부모
커밋
66881d5709
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/or/router.c

+ 2 - 0
src/or/router.c

@@ -433,6 +433,8 @@ int router_rebuild_descriptor(void) {
     log_fn(LOG_WARN, "Couldn't dump router to string.");
     return -1;
   }
+  if (ri->dir_port)
+    ri->is_trusted_dir = 1;
   return 0;
 }