summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-18 11:56:56 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-18 11:56:56 +0000
commitb3c6fd7fc6653e9d9507fd2663b743228e3045fd (patch)
treef947a30d74f72733489d5632cde12bc53ed4ff3e
parentd3a6276031adb0cedb123b694dfc8277f17882ae (diff)
downloadtor-b3c6fd7fc6653e9d9507fd2663b743228e3045fd.tar.gz
tor-b3c6fd7fc6653e9d9507fd2663b743228e3045fd.zip
r15881@catbus: nickm | 2007-10-17 14:59:36 -0400
Backport: Patch from robert hogan: do not reset trusted dir server list when we get a config option. svn:r12014
-rw-r--r--ChangeLog2
-rw-r--r--doc/TODO.0123
-rw-r--r--src/or/config.c7
3 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 1d39eb67c6..887c51d95c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -49,6 +49,8 @@ Changes in version 0.1.2.18 - 2007-10-??
- It's not actually an error to find a non-pending entry in the DNS
cache when canceling a pending resolve. Don't log unless stuff
is fishy. Resolves bug 463.
+ - Don't reset trusted dir server list when we set a configuration option.
+ (Patch from Robert Hogan.)
Changes in version 0.1.2.17 - 2007-08-30
diff --git a/doc/TODO.012 b/doc/TODO.012
index 4091e88d0f..4df5783ac7 100644
--- a/doc/TODO.012
+++ b/doc/TODO.012
@@ -14,4 +14,5 @@ Backport for 0.1.2.x once better tested:
o r11499, r11500, r11501: hidserv hexdigests rather than nicknames
o r11829: Don't warn when cancel_pending_resolve() finds a cached failure.
o r11915: just because you hup, don't publish a near-duplicate descriptor
-
+ - r11994: Call routerlist_remove_old_routers() less. This will be a
+ tricky backport.
diff --git a/src/or/config.c b/src/or/config.c
index 39dc7aee90..2be061bcf4 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -441,7 +441,7 @@ static config_var_description_t options_description[] = {
"and servers." },
{ "ORListenAddress", "Bind to this address to listen for connections from "
"clients and servers, instead of the default 0.0.0.0:ORPort." },
- { "PublishServerDescriptors", "Set to 0 in order to keep the server from "
+ { "PublishServerDescriptor", "Set to 0 in order to keep the server from "
"uploading info to the directory authorities." },
/*{ "RedirectExit", "When an outgoing connection tries to connect to a "
*"given address, redirect it to another address instead." },
@@ -885,8 +885,8 @@ options_act(or_options_t *old_options)
int running_tor = options->command == CMD_RUN_TOR;
char *msg;
- clear_trusted_dir_servers();
if (options->DirServers) {
+ clear_trusted_dir_servers();
for (cl = options->DirServers; cl; cl = cl->next) {
if (parse_dir_server_line(cl->value, 0)<0) {
log_err(LD_BUG,
@@ -895,7 +895,8 @@ options_act(or_options_t *old_options)
}
}
} else {
- add_default_trusted_dirservers();
+ if (!router_get_trusted_dir_servers())
+ add_default_trusted_dirservers();
}
if (running_tor && rend_config_services(options, 0)<0) {