Avoid checking ORPort reachability when the network is disabled

This is consistent with existing DirPort reachability checks.
This commit is contained in:
teor (Tim Wilson-Brown)
2016-04-28 11:13:14 +10:00
parent 2cfcf17cfc
commit d3c60f2bd7
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -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;
}