summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-29 04:51:28 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-29 04:51:28 +0000
commit8992bf6204b70436c2dc881ffa2d79db40384b38 (patch)
tree6739ca3668aef26968b872c15b70dee91b75330d /src/or/routerparse.c
parent4feccecfe813313a8302a44ed560dd7b61c51c2a (diff)
downloadtor-8992bf6204b70436c2dc881ffa2d79db40384b38.tar.gz
tor-8992bf6204b70436c2dc881ffa2d79db40384b38.zip
r8776@totoro: nickm | 2006-09-29 00:50:46 -0400
Reserve the nickname "Unnamed" for routers that can't pick a hostname; any router can call itself Unnamed; directory servers will never allocate Unnamed to any particular router; clients won't believe that any router is the canonical Unnamed. svn:r8529
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 2f214a1ef4..b73697ab40 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -1064,6 +1064,9 @@ routerstatus_parse_entry_from_string(const char **s, smartlist_t *tokens)
}
}
+ if (!strcasecmp(rs->nickname, UNNAMED_ROUTER_NICKNAME))
+ rs->is_named = 0;
+
goto done;
err:
if (rs)