Browse Source

If we are a directory, we should trust ourself.

svn:r1943
Nick Mathewson 21 years ago
parent
commit
66881d5709
1 changed files with 2 additions and 0 deletions
  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;
 }