From: Nick Mathewson Date: Tue, 17 May 2016 14:48:12 +0000 (-0400) Subject: Merge remote-tracking branch 'arma/bug18616-v4' into maint-0.2.8 X-Git-Tag: tor-0.2.8.3-alpha~22^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=548d14247e3c8a48e2efb2ca62ee7a05fca843ba;p=thirdparty%2Ftor.git Merge remote-tracking branch 'arma/bug18616-v4' into maint-0.2.8 --- 548d14247e3c8a48e2efb2ca62ee7a05fca843ba diff --cc src/or/router.c index 3f94703a26,57c0618bfb..d70756fdbf --- a/src/or/router.c +++ b/src/or/router.c @@@ -1570,15 -1625,9 +1627,15 @@@ decide_if_publishable_server(void return 1; if (!router_get_advertised_or_port(options)) return 0; - if (!check_whether_orport_reachable()) - - return check_whether_orport_reachable(options) && - check_whether_dirport_reachable(options); ++ if (!check_whether_orport_reachable(options)) + return 0; + if (router_have_consensus_path() == CONSENSUS_PATH_INTERNAL) { + /* All set: there are no exits in the consensus (maybe this is a tiny + * test network), so we can't check our DirPort reachability. */ + return 1; + } else { - return check_whether_dirport_reachable(); ++ return check_whether_dirport_reachable(options); + } } /** Initiate server descriptor upload as reasonable (if server is publishable,