]> git.ipfire.org Git - thirdparty/tor.git/commit
Apply StrictNodes to hidden service directories early
authorNick Mathewson <nickm@torproject.org>
Fri, 24 Jan 2014 17:56:10 +0000 (12:56 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 24 Jan 2014 17:56:10 +0000 (12:56 -0500)
commitbb21d14255c2f5c94173dda2ba30c83478044779
treef26a077a6e300fec1582d7136dc77e82178041fd
parent35115496511f64c08849a039c926910739467169
Apply StrictNodes to hidden service directories early

Previously, we would sometimes decide in directory_get_from_hs_dir()
to connect to an excluded node, and then later in
directory_initiate_command_routerstatus_rend() notice that it was
excluded and strictnodes was set, and catch it as a stopgap.

Additionally, this patch preferentially tries to fetch from
non-excluded nodes even when StrictNodes is off.

Fix for bug #10722. Bugfix on 0.2.0.10-alpha (the v2 hidserv directory
system was introduced in e136f00ca). Reported by "mr-4".
changes/bug10722 [new file with mode: 0644]
src/or/rendclient.c