]> git.ipfire.org Git - thirdparty/tor.git/commit
handle excludenodes for dir fetch/post
authorRoger Dingledine <arma@torproject.org>
Fri, 11 Mar 2011 08:09:24 +0000 (03:09 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 27 Apr 2011 03:53:50 +0000 (23:53 -0400)
commit4906188b622872899f76cf01167cfef3e09cbffd
treea0e203ce5433bab68756c8651ada974e8f498f58
parentad3da535366aeb9b7441f4881899758bc7475168
handle excludenodes for dir fetch/post

If we're picking a random directory node, never pick an excluded one.
But if we've chosen a specific one (or all), allow it unless strictnodes
is set (in which case warn so the user knows it's their fault).

When warning that we won't connect to a strictly excluded node,
log what it was we were trying to do at that node.

When ExcludeNodes is set but StrictNodes is not set, we only use
non-excluded nodes if we can, but fall back to using excluded nodes
if none of those nodes is usable.
src/or/directory.c
src/or/routerlist.c