aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-03-22 03:45:17 +0000
committerRoger Dingledine <arma@torproject.org>2006-03-22 03:45:17 +0000
commit1db263ac3c4eeaa531727228a5c5075764905d7b (patch)
tree7d3bec5b72787a0ff4bad788927260e889253cd2 /src/or/router.c
parent805754fdd92035c8b640ba269d8912073478fe9f (diff)
downloadtor-1db263ac3c4eeaa531727228a5c5075764905d7b.tar.gz
tor-1db263ac3c4eeaa531727228a5c5075764905d7b.zip
stop writing the "router.desc" file, ever. nothing uses it anymore.
svn:r6224
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index c1b78a9110..83adc82ace 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -311,7 +311,7 @@ init_keys(void)
log_err(LD_GENERAL,"Error initializing TLS context");
return -1;
}
- /* 4. Dump router descriptor to 'router.desc' */
+ /* 4. Build our router descriptor. */
/* Must be called after keys are initialized. */
mydesc = router_get_my_descriptor();
if (!mydesc) {
@@ -332,11 +332,13 @@ init_keys(void)
}
}
+#if 0
tor_snprintf(keydir,sizeof(keydir),"%s/router.desc", datadir);
log_info(LD_GENERAL,"Dumping descriptor to \"%s\"...",keydir);
if (write_str_to_file(keydir, mydesc,0)) {
return -1;
}
+#endif
/* 5. Dump fingerprint to 'fingerprint' */
tor_snprintf(keydir,sizeof(keydir),"%s/fingerprint", datadir);
log_info(LD_GENERAL,"Dumping fingerprint to \"%s\"...",keydir);