diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-12-13 13:09:27 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-13 13:09:27 -0500 |
commit | 55d02c004c9b36258ef64ccb2def4ddcb0fb04c5 (patch) | |
tree | bea95d5ea3fef665ba39bb80826d2e8e77ab8cd7 /src/or/routerlist.c | |
parent | 56b11905e509297e3db55f62afd14afb6e6ae2eb (diff) | |
download | tor-55d02c004c9b36258ef64ccb2def4ddcb0fb04c5.tar.gz tor-55d02c004c9b36258ef64ccb2def4ddcb0fb04c5.zip |
Remove AuthDirMaxServersPerAuthAddr
Back when Roger had do do most of our testing on the moria host, we
needed a higher limit for the number of relays running on a single
IP address when that limit was shared with an authority. Nowadays,
the idea is pretty obsolete.
Also remove the router_addr_is_trusted_dir() function, which served
no other purpose.
Closes ticket 20960.
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 46c44d89b6..69ae51ad4a 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -2991,20 +2991,6 @@ router_digest_is_trusted_dir_type(const char *digest, dirinfo_type_t type) return 0; } -/** Return true iff <b>addr</b> is the address of one of our trusted - * directory authorities. */ -int -router_addr_is_trusted_dir(uint32_t addr) -{ - if (!trusted_dir_servers) - return 0; - SMARTLIST_FOREACH(trusted_dir_servers, dir_server_t *, ent, - if (ent->addr == addr) - return 1; - ); - return 0; -} - /** If hexdigest is correctly formed, base16_decode it into * digest, which must have DIGEST_LEN space in it. * Return 0 on success, -1 on failure. |