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

[tor-commits] [tor/maint-0.2.8] Merge branch 'feature18483-028-v2-squashed' into maint-0.2.8



commit 68d913c49c7aff441fc6671406aee5137f36f620
Merge: 2e5b35d 9aa280c
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Thu May 5 08:16:36 2016 -0400

    Merge branch 'feature18483-028-v2-squashed' into maint-0.2.8

 changes/feature18483 |  4 ++++
 src/or/directory.c   | 67 ++++++++++++++++++++++++++++++++++++++++++++--------
 src/or/directory.h   |  6 +++--
 src/or/routerlist.c  | 10 ++++----
 4 files changed, 71 insertions(+), 16 deletions(-)

diff --cc src/or/routerlist.c
index 2167ae2,6a293b7..97512d7
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@@ -1743,11 -1746,13 +1744,11 @@@ router_pick_directory_server_impl(dirin
                                     try_ip_pref))
        smartlist_add(is_trusted ? trusted_tunnel :
                      is_overloaded ? overloaded_tunnel : tunnel, (void*)node);
-     else if (skip_dir ||
+     else if (!must_have_or && (skip_dir ||
               fascist_firewall_allows_rs(status, FIREWALL_DIR_CONNECTION,
-                                         try_ip_pref))
+                                         try_ip_pref)))
        smartlist_add(is_trusted ? trusted_direct :
                      is_overloaded ? overloaded_direct : direct, (void*)node);
 -    else if (!tor_addr_is_null(&status->ipv6_addr))
 -      ++n_not_preferred;
    } SMARTLIST_FOREACH_END(node);
  
    if (smartlist_len(tunnel)) {
@@@ -1888,10 -1894,12 +1890,10 @@@ router_pick_trusteddirserver_impl(cons
            fascist_firewall_allows_dir_server(d, FIREWALL_OR_CONNECTION,
                                               try_ip_pref))
          smartlist_add(is_overloaded ? overloaded_tunnel : tunnel, (void*)d);
-       else if (skip_dir ||
+       else if (!must_have_or && (skip_dir ||
                 fascist_firewall_allows_dir_server(d, FIREWALL_DIR_CONNECTION,
-                                                   try_ip_pref))
+                                                   try_ip_pref)))
          smartlist_add(is_overloaded ? overloaded_direct : direct, (void*)d);
 -      else if (!tor_addr_is_null(&d->ipv6_addr))
 -        ++n_not_preferred;
      }
    SMARTLIST_FOREACH_END(d);
  



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