summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-09 20:44:47 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-09 20:44:47 +0000
commit8b71a76dd322ab0043871cac3c299cd660471121 (patch)
tree3e81cd2444e9335ec592a5b70725fb43d40a734f /src/or/routerparse.c
parent010fd50c365f90f98e9e8ec243a573aba4c53cfa (diff)
downloadtor-8b71a76dd322ab0043871cac3c299cd660471121.tar.gz
tor-8b71a76dd322ab0043871cac3c299cd660471121.zip
r15598@catbus: nickm | 2007-10-09 16:37:35 -0400
Turn all "Is DirPort nonzero? Because if it is, we must be a directory" logic into calls to dirserver_mode(). svn:r11817
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index ed8fbe384a..a5264c1bd0 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -670,7 +670,7 @@ router_parse_directory(const char *str)
/* Now that we know the signature is okay, and we have a
* publication time, cache the directory. */
- if (get_options()->DirPort && !authdir_mode_v1(get_options()))
+ if (dirserver_mode(get_options()) && !authdir_mode_v1(get_options()))
dirserv_set_cached_directory(str, published_on, 0);
r = 0;