summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-06-02 20:15:35 +0000
committerNick Mathewson <nickm@torproject.org>2004-06-02 20:15:35 +0000
commit66881d570961dd6b7b283f56a38fdf6a0631ce68 (patch)
treea36255a2f125f02fe6461a201361d88705947a57
parent5ba16c3b3eaefec658da05637b25cdb458286967 (diff)
downloadtor-66881d570961dd6b7b283f56a38fdf6a0631ce68.tar.gz
tor-66881d570961dd6b7b283f56a38fdf6a0631ce68.zip
If we are a directory, we should trust ourself.
svn:r1943
-rw-r--r--src/or/router.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c
index aa9134b33b..dc91797101 100644
--- a/src/or/router.c
+++ b/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;
}