aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 1ff60d2d0..35562eff7 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -516,12 +516,8 @@ int router_rebuild_descriptor(void) {
log_fn(LOG_WARN, "Couldn't dump router to string.");
return -1;
}
- /* XXX008 NM: no, we shouldn't just blindly assume we're an
- * authdirserver just because our dir_port is set. We should
- * take these next two lines out, and then set our is_trusted_dir
- * variable if we find ourselves in the dirservers file. Yes/no? */
- if (ri->dir_port)
- ri->is_trusted_dir = 1;
+ ri->is_trusted_dir = ri->dir_port &&
+ router_digest_is_trusted_dir(ri->identity_digest);
return 0;
}