]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
If we are a directory, we should trust ourself.
authorNick Mathewson <nickm@torproject.org>
Wed, 2 Jun 2004 20:15:35 +0000 (20:15 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 2 Jun 2004 20:15:35 +0000 (20:15 +0000)
svn:r1943

src/or/router.c

index aa9134b33b01305dae8f53067ce8a5016d094c3c..dc917971010ef1218573f2eb3996cdfc020944a4 100644 (file)
@@ -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;
 }