No description
Find a file
Robert Hogan d6744d611f Fall back to direct descriptor request to bridges when
requests to authorities fail due to a network error.

Bug#1138
"When a Tor client starts up using a bridge, and UpdateBridgesFromAuthority
is set, Tor will go to the authority first and look up the bridge by
fingerprint. If the bridge authority is filtered, Tor will never notice that
the bridge authority lookup failed. So it will never fall back."

Add connection_dir_bridge_routerdesc_failed(), a function for unpacking
the bridge information from a failed request, and ensure
connection_dir_request_failed() calls it if the failed request
was for a bridge descriptor.

Test:

1. for ip in `grep -iR 'router ' cached-descriptors|cut -d ' ' -f 3`;
do sudo iptables -A OUTPUT -p tcp -d $ip -j DROP; done
2. remove all files from user tor directory
3. Put the following in torrc:

UseBridges 1
UpdateBridgesFromAuthority 1
Bridge 85.108.88.19:443 7E1B28DB47C175392A0E8E4A287C7CB8686575B7

4. Launch tor - it should fall back to downloading descriptors
   directly from the bridge.

Initial patch reviewed and corrected by mingw-san.
2010-08-16 21:15:49 +01:00
changes Fall back to direct descriptor request to bridges when 2010-08-16 21:15:49 +01:00
contrib bump to 0.2.2.14-alpha-dev 2010-07-13 15:48:03 -04:00
doc minor formatting / comment fixes 2010-08-13 17:18:45 -04:00
src Fall back to direct descriptor request to bridges when 2010-08-16 21:15:49 +01:00
Win32Build r8906@Kushana: nickm | 2006-09-21 21:23:22 -0400 2006-09-22 01:23:28 +00:00
.gitignore add .exe files to gitignore 2010-02-25 17:02:02 -05:00
acinclude.m4 Merge commit 'origin/maint-0.2.1' 2010-01-24 15:03:45 -05:00
autogen.sh r14641@catbus: nickm | 2007-08-17 17:53:14 -0400 2007-08-17 21:55:24 +00:00
ChangeLog fold in the makefile.am changes entry 2010-08-13 17:19:04 -04:00
configure.in bump to 0.2.2.14-alpha-dev 2010-07-13 15:48:03 -04:00
Doxyfile.in Remove all svn metadata minus what I missed. 2009-05-05 17:05:46 +02:00
INSTALL we changed autogen.sh's behavior, so update the INSTALL file 2008-01-23 19:08:53 +00:00
LICENSE move to maxmind geoip db 2010-05-06 07:15:22 -04:00
Makefile.am Simplify expression to list files for check-spaces 2010-07-27 10:00:46 +02:00
README we have two faqs for now 2010-02-22 00:41:48 -05:00
ReleaseNotes release notes entry for 0.2.1.26 2010-05-05 03:19:41 -04:00
tor.spec.in Updated spec file to remove AUTHORS and add myself as maintainer 2010-02-22 20:00:53 -08:00

Tor protects your privacy on the internet by hiding the connection
between your Internet address and the services you use. We believe Tor
is reasonably secure, but please ensure you read the instructions and
configure it properly.

To build Tor from source:
        ./configure && make && make install

Home page:
        https://www.torproject.org/

Download new versions:
        https://www.torproject.org/download.html

Documentation, including links to installation and setup instructions:
        https://www.torproject.org/documentation.html

Making applications work with Tor:
        https://wiki.torproject.org/noreply/TheOnionRouter/TorifyHOWTO

Frequently Asked Questions:
        https://www.torproject.org/faq.html
        https://wiki.torproject.org/noreply/TheOnionRouter/TorFAQ