[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Merge remote-tracking branch 'teor/feature17327-v4'



commit aa4be914f06baa92857de201a212b9fc9856bdb1
Merge: 125e0c7 60fc2b2
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Tue Dec 15 13:19:18 2015 -0500

    Merge remote-tracking branch 'teor/feature17327-v4'

 changes/bug6027                |    4 +
 changes/feature17327           |    5 ++
 doc/tor.1.txt                  |    9 ++-
 src/or/config.c                |   49 +++++++++--
 src/or/config.h                |    8 +-
 src/or/or.h                    |    2 +
 src/or/router.c                |    1 +
 src/or/routerlist.c            |   27 ++++++-
 src/or/routerlist.h            |    2 +
 src/test/test_config.c         |  175 ++++++++++++++++++++++++++++++++++++++++
 src/test/test_dir_handle_get.c |   28 +++----
 11 files changed, 280 insertions(+), 30 deletions(-)

diff --cc doc/tor.1.txt
index 562fed9,3ef5674..f173a97
--- a/doc/tor.1.txt
+++ b/doc/tor.1.txt
@@@ -358,20 -358,10 +358,20 @@@ GENERAL OPTION
      DataDirectory. If the option is set to 1, make the DataDirectory readable
      by the default GID. (Default: 0)
  
- [[FallbackDir]] **FallbackDir** __address__:__port__ orport=__port__ id=__fingerprint__ [weight=__num__]::
+ [[FallbackDir]] **FallbackDir** __address__:__port__ orport=__port__ id=__fingerprint__ [weight=__num__] [ipv6=__address__:__orport__]::
      When we're unable to connect to any directory cache for directory info
 -    (usually because we don't know about any yet) we try a FallbackDir.
 -    By default, the directory authorities are also FallbackDirs.
 +    (usually because we don't know about any yet) we try a directory authority.
 +    Clients also simultaneously try a FallbackDir, to avoid hangs on client
 +    startup if a directory authority is down. Clients retry FallbackDirs more
 +    often than directory authorities, to reduce the load on the directory
 +    authorities.
 +    By default, the directory authorities are also FallbackDirs. Specifying a
 +    FallbackDir replaces Tor's default hard-coded FallbackDirs (if any).
 +
 +[[UseDefaultFallbackDirs]] **UseDefaultFallbackDirs** **0**|**1**::
 +    Use Tor's default hard-coded FallbackDirs (if any). (When a
 +    FallbackDir line is present, it replaces the hard-coded FallbackDirs,
 +    regardless of the value of UseDefaultFallbackDirs.) (Default: 1)
  
  [[DirAuthority]] **DirAuthority** [__nickname__] [**flags**] __address__:__port__ __fingerprint__::
      Use a nonstandard authoritative directory server at the provided address
diff --cc src/test/test_config.c
index 1d25f86,580dae4..0137d1c
--- a/src/test/test_config.c
+++ b/src/test/test_config.c
@@@ -3326,8 -3383,12 +3496,13 @@@ test_config_use_multiple_directories(vo
    { #name, test_config_ ## name, flags, NULL, NULL }
  
  struct testcase_t config_tests[] = {
+   CONFIG_TEST(adding_trusted_dir_server, TT_FORK),
+   CONFIG_TEST(adding_fallback_dir_server, TT_FORK),
+   CONFIG_TEST(parsing_trusted_dir_server, 0),
+   CONFIG_TEST(parsing_fallback_dir_server, 0),
+   CONFIG_TEST(adding_default_trusted_dir_servers, TT_FORK),
    CONFIG_TEST(adding_dir_servers, TT_FORK),
 +  CONFIG_TEST(default_dir_servers, TT_FORK),
    CONFIG_TEST(resolve_my_address, TT_FORK),
    CONFIG_TEST(addressmap, 0),
    CONFIG_TEST(parse_bridge_line, 0),

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits