summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-04-28 11:13:14 +1000
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-04-28 12:26:38 +1000
commitd3c60f2bd7430ed319406f89ba6e758038ecd5eb (patch)
tree2571ff9f669b0a9848c5819484a1cade21d105f2 /src/or/router.c
parent2cfcf17cfc4377efcf10a036557fa3134bf8c1b1 (diff)
downloadtor-d3c60f2bd7430ed319406f89ba6e758038ecd5eb.tar.gz
tor-d3c60f2bd7430ed319406f89ba6e758038ecd5eb.zip
Avoid checking ORPort reachability when the network is disabled
This is consistent with existing DirPort reachability checks.
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 545753c82e..1083e24f99 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;
}