[tor-commits] [tor/release-0.2.8] Avoid checking ORPort reachability when the network is disabled

nickm at torproject.org nickm at torproject.org
Tue May 17 15:10:35 UTC 2016


commit d3c60f2bd7430ed319406f89ba6e758038ecd5eb
Author: teor (Tim Wilson-Brown) <teor2345 at gmail.com>
Date:   Thu Apr 28 11:13:14 2016 +1000

    Avoid checking ORPort reachability when the network is disabled
    
    This is consistent with existing DirPort reachability checks.
---
 changes/bug18616 | 5 +++--
 src/or/router.c  | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/changes/bug18616 b/changes/bug18616
index 44695a1..d760f15 100644
--- a/changes/bug18616
+++ b/changes/bug18616
@@ -1,7 +1,8 @@
   o Major bugfixes (directory mirrors):
     - Fix broken DirPort self-checks. Decide to advertise begindir
       support the same way we decide to advertise DirPorts.
-      Include additional config options in the list that might
-      change the content of a relay's descriptor.
+      Add additional config options that might change the content of
+      a relay's descriptor.
+      Avoid checking ORPort reachability when the network is disabled.
       Resolves #18616, bugfix on 0c8e042c30946faa in #12538 in
       0.2.8.1-alpha. Patch by "teor".
diff --git a/src/or/router.c b/src/or/router.c
index 545753c..1083e24 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1085,6 +1085,7 @@ check_whether_orport_reachable(void)
 {
   const or_options_t *options = get_options();
   return options->AssumeReachable ||
+         net_is_disabled() ||
          can_reach_or_port;
 }
 





More information about the tor-commits mailing list